Skip to content

Commit

Permalink
Remove Babel
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Apr 16, 2024
1 parent f16b675 commit e7ce111
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1,292 deletions.
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

12 changes: 1 addition & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,7 @@
},
"homepage": "https://github.com/tus/tus-js-client",
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.13.10",
"@babel/eslint-parser": "^7.13.10",
"@babel/eslint-plugin": "^7.13.10",
"@babel/helper-get-function-arity": "^7.16.7",
"@babel/plugin-syntax-jsx": "^7.12.13",
"@babel/plugin-transform-modules-commonjs": "^7.9.6",
"@babel/preset-env": "^7.0.0",
"axios": "^0.28.0",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"chokidar-cli": "^3.0.0",
"eslint": "^7.22.0",
Expand All @@ -73,7 +64,6 @@
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"puppeteer": "^22.3.0",
"regenerator-runtime": "^0.14.0",
"temp": "^0.9.4",
"throttle": "^1.0.3",
"tsd": "0.31.0",
Expand All @@ -90,7 +80,7 @@
"url-parse": "^1.5.7"
},
"scripts": {
"build-test-bundle": "mkdir -p dist && browserify test/spec/browser-index.js -t [ babelify --plugins [ @babel/transform-modules-commonjs ] ] -d -o dist/browser-test-bundle.js",
"build-test-bundle": "mkdir -p dist && browserify test/spec/browser-index.js -d -o dist/browser-test-bundle.js",
"build-bundle": "mkdir -p dist && browserify lib.es5/browser/index.js -s tus -d | exorcist ./dist/tus.js.map > dist/tus.js",
"build-minify": "uglifyjs ./dist/tus.js -o ./dist/tus.min.js --compress --mangle --source-map \"content='./dist/tus.js.map',url='tus.min.js.map'\"",
"build-transpile-esm": "tsc --project tsconfig-esm.json",
Expand Down
5 changes: 0 additions & 5 deletions test/spec/browser-index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
'use strict'

// The regenerator runtime is needed since the test use functions
// with the async/await keywords. See
// https://babeljs.io/docs/en/babel-plugin-transform-regenerator
require('regenerator-runtime/runtime')

beforeEach(() => {
// Clear localStorage before every test to prevent stored URLs to
// interfere with our setup.
Expand Down

0 comments on commit e7ce111

Please sign in to comment.