chore: remove babel step from final app build

This commit is contained in:
Dmitry Krupenya
2020-05-21 18:25:40 +03:00
parent 711d7be582
commit 4d7a02e53b
3 changed files with 1 additions and 23 deletions
@@ -1,14 +0,0 @@
module.exports = {
presets: [
"@babel/preset-env",
// "@babel/preset-react",
// ['@babel/preset-typescript', { isTSX: true, allExtensions: true }],
],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-syntax-dynamic-import',
// '@babel/plugin-proposal-optional-chaining',
// ['@babel/plugin-proposal-decorators', { legacy: true }],
// ['@babel/plugin-proposal-class-properties', { loose: true }],
],
}
@@ -88,14 +88,9 @@ module.exports = (env, argv) => {
{
test: /\.js$/,
use: [
{
loader: 'babel-loader',
options: {
configFile: path.join(__dirname, 'babel-app.config.js')
},
},
{
loader: StringReplacePlugin.replace({
exclude: /node_modules/,
/**
* This replacement allows to put into the build the plugins that were mentioned in package.json
*/
@@ -111,7 +106,6 @@ module.exports = (env, argv) => {
},
'source-map-loader'
],
exclude: /node_modules/,
},
],
},
-2
View File
@@ -10,8 +10,6 @@
"dependencies": {
"@babel/cli": "^7.7.4",
"@babel/core": "^7.7.4",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.7.4",