Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
babelify dependencies
Browse files Browse the repository at this point in the history
This makes babelify `global`, ensuring that code pulled in from
dependencies is not using unsupported syntax.
  • Loading branch information
legobeat committed Oct 18, 2023
1 parent 02afa4c commit dac6969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"prepublishOnly": "yarn build && yarn bundle",
"build": "babel zero.js index.js -d dist/es5 && babel subproviders -d dist/es5/subproviders && babel util -d dist/es5/util",
"bundle": "mkdir -p ./dist && yarn bundle-engine && yarn bundle-zero",
"bundle-zero": "browserify -s ZeroClientProvider -e zero.js -t [ babelify --presets [ @babel/preset-env ] ] > dist/ZeroClientProvider.js",
"bundle-engine": "browserify -s ProviderEngine -e index.js -t [ babelify --presets [ @babel/preset-env ] ] > dist/ProviderEngine.js",
"bundle-zero": "browserify -s ZeroClientProvider -e zero.js -t [ babelify --presets [ @babel/preset-env ] --global true --ignore [ 'node_modules/@babel' 'node_modules/core-js-pure' 'node_modules/core-js' ] ] > dist/ZeroClientProvider.js",
"bundle-engine": "browserify -s ProviderEngine -e index.js -t [ babelify --presets [ @babel/preset-env ] --global true --ignore [ 'node_modules/@babel' 'node_modules/core-js-pure' 'node_modules/core-js' ] ] > dist/ProviderEngine.js",
"lint": "eslint --quiet --ignore-path .gitignore ."
},
"files": [
Expand Down

0 comments on commit dac6969

Please sign in to comment.