-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
housekeeping: webpack@4 + babel@7 (via #2020)
* babel@7 * structure styles within LESS entrypoint ...instead of importing them among JS modules * use ESM syntax for entrypoint exports ...because webpack@4 doesn't tolerate import syntax + CJS export syntax * use property access instead of destructuring `process.env` usage ...because webpack@4 doesn't rewrite destructured access * webpack@4 * base config builder * asset build configurations * dev server configuration * size audit configuration * remove legacy validation worker assets * skip needless minification in `deps-size` * update package scripts * remove legacy configs * prettier * remove unused Babel plugins * use correct jsx loader in Mocha * update eslint * eslint fixes
- Loading branch information
Showing
37 changed files
with
10,835 additions
and
7,411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,49 @@ | ||
{ | ||
"presets": [ | ||
"es2015", | ||
"react", | ||
"stage-0" | ||
[ | ||
"@babel/env", | ||
{ | ||
"targets": { | ||
"browsers": [ | ||
/* benefit of C/S/FF/Edge only? */ | ||
"> 1%", | ||
"last 2 versions", | ||
"Firefox ESR", | ||
"not dead", | ||
] | ||
}, | ||
"useBuiltIns": "entry", | ||
"corejs": "2" | ||
} | ||
], | ||
"@babel/preset-react" | ||
], | ||
"plugins": [ | ||
"transform-runtime", | ||
"transform-async-to-generator", | ||
"transform-es2015-constants", | ||
[ | ||
"module-alias", | ||
[ | ||
"@babel/plugin-transform-runtime", | ||
{ | ||
"expose": "plugins", | ||
"src": "src/plugins" | ||
}, | ||
"corejs": "2" | ||
} | ||
], | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-optional-chaining", | ||
[ | ||
"transform-react-remove-prop-types", | ||
{ | ||
"expose": "test", | ||
"src": "test" | ||
}, | ||
"additionalLibraries": [ | ||
"react-immutable-proptypes" | ||
] | ||
} | ||
], | ||
[ | ||
"babel-plugin-module-resolver", | ||
{ | ||
"expose": "src", | ||
"src": "src" | ||
"alias": { | ||
"plugins": "./src/plugins", | ||
"test": "./test", | ||
"src": "./src" | ||
} | ||
} | ||
] | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
semi: false | ||
trailingComma: es5 | ||
endOfLine: lf | ||
requirePragma: true | ||
insertPragma: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.