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

Commit

Permalink
Upgrade library-side babel installation, and remove now-unnecessary t…
Browse files Browse the repository at this point in the history
…ransformations

Specifically, object-rest-spread and nullish coalescing are now defaults in the preset-env configuration. The future is here!
  • Loading branch information
FelixHenninger committed Mar 9, 2020
1 parent 0715f7e commit 4b7a484
Show file tree
Hide file tree
Showing 3 changed files with 852 additions and 183 deletions.
16 changes: 7 additions & 9 deletions packages/library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"homepage": "https://lab.js.org",
"main": "dist/lab.js",
"dependencies": {
"@babel/runtime": "^7.7.0",
"@babel/runtime": "^7.8.0",
"common-tags": "^1.8.0",
"core-js": "^3.6.1",
"cross-env": "^5.2.0",
Expand All @@ -28,15 +28,13 @@
"whatwg-fetch": "^2.0.4"
},
"devDependencies": {
"@babel/core": "^7.7.0",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.7.0",
"@babel/plugin-transform-regenerator": "^7.7.0",
"@babel/plugin-transform-runtime": "^7.7.0",
"@babel/preset-env": "^7.7.0",
"@babel/core": "^7.8.0",
"@babel/plugin-proposal-class-properties": "^7.8.0",
"@babel/plugin-transform-regenerator": "^7.8.0",
"@babel/plugin-transform-runtime": "^7.8.0",
"@babel/preset-env": "^7.8.0",
"babel-eslint": "^9.0.0",
"babel-loader": "8.0.4",
"babel-loader": "^8.0.4",
"babel-plugin-istanbul": "^5.1.0",
"babel-plugin-lodash": "^3.2.6",
"babel-preset-minify": "^0.5.0",
Expand Down
4 changes: 0 additions & 4 deletions packages/library/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ module.exports = (env, argv) => {
}],
],
plugins: [
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-nullish-coalescing-operator',
'lodash',
['module:fast-async', {
runtimePattern: './src/index.js'
Expand Down Expand Up @@ -79,9 +77,7 @@ module.exports = (env, argv) => {
}],
],
plugins: [
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-nullish-coalescing-operator',
'lodash',
],
}
Expand Down
Loading

0 comments on commit 4b7a484

Please sign in to comment.