remove babelrc.js, rely on webpack config instead
This commit is contained in:
parent
5965606de0
commit
df1423eca6
2 changed files with 7 additions and 5 deletions
|
|
@ -1,4 +0,0 @@
|
|||
module.exports = {
|
||||
presets: ['@babel/preset-env'],
|
||||
plugins: [['@babel/plugin-proposal-decorators', { legacy: true }]],
|
||||
};
|
||||
|
|
@ -61,6 +61,12 @@ module.exports.getWebpackConfig = (config, options) => {
|
|||
loose: true,
|
||||
},
|
||||
],
|
||||
[
|
||||
'@babel/plugin-proposal-decorators',
|
||||
{
|
||||
legacy: true,
|
||||
},
|
||||
],
|
||||
'@babel/plugin-transform-react-constant-elements',
|
||||
'@babel/plugin-proposal-nullish-coalescing-operator',
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
|
|
@ -86,7 +92,7 @@ module.exports.getWebpackConfig = (config, options) => {
|
|||
localIdentName: options.production ? '[name]__[hash:base64]' : '[path][name]__[local]',
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue