diff --git a/webapp/packages/builder/configs/babel-app.config.js b/webapp/packages/builder/configs/babel-app.config.js deleted file mode 100644 index c46c206cc8..0000000000 --- a/webapp/packages/builder/configs/babel-app.config.js +++ /dev/null @@ -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 }], - ], -} diff --git a/webapp/packages/builder/configs/webpack-common-config.js b/webapp/packages/builder/configs/webpack-common-config.js index ea7998a12a..62eeb11ebd 100644 --- a/webapp/packages/builder/configs/webpack-common-config.js +++ b/webapp/packages/builder/configs/webpack-common-config.js @@ -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/, }, ], }, diff --git a/webapp/packages/builder/package.json b/webapp/packages/builder/package.json index 2605a4275f..7e0ccdc8e3 100644 --- a/webapp/packages/builder/package.json +++ b/webapp/packages/builder/package.json @@ -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",