* build new core webpack config * fix exports in Webpack; use ESM syntax throughout * add bundle config * add standalone config * add style config * prettier... * add dev config * delete legacy webpack scripts * rewire npm scripts to use new webpack configs * cache babel-loader results * fix e2e dev servers * update core Webpack modules * update loaders to latest * remove unused loaders * update Webpack plugins * add mode flags to Webpack configs * remove plugin invocations that are now production-standard in v4 * update webpack-cli * add webpack perf size limit flags * replace ExtractText with MiniCssExtract + IgnoreAssets * UglifyJsPlugin -> TerserPlugin * fix PostCSS processing * enable Terser sourcemaps * webpack/style -> webpack/stylesheets
46 lines
1012 B
Plaintext
46 lines
1012 B
Plaintext
{
|
|
"presets": [
|
|
[
|
|
"@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": [
|
|
["@babel/plugin-transform-runtime", {
|
|
"corejs": "2"
|
|
}],
|
|
"@babel/plugin-proposal-class-properties",
|
|
["transform-react-remove-prop-types", {
|
|
"additionalLibraries": ["react-immutable-proptypes"]
|
|
}],
|
|
[
|
|
"babel-plugin-module-resolver",
|
|
{
|
|
"alias": {
|
|
"root": ".",
|
|
"components": "./src/core/components",
|
|
"containers": "./src/core/containers",
|
|
"core": "./src/core",
|
|
"plugins": "./src/plugins",
|
|
"img": "./src/img",
|
|
"corePlugins": "./src/core/plugins",
|
|
"less": "./src/less",
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|