mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
chore: remove babel step from final app build
This commit is contained in:
@@ -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/,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user