mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
fix: use acorn and drop babel-loader by default (#9320)
This commit is contained in:

committed by
GitHub

parent
e82a364dd4
commit
482b7b11f6
@ -208,19 +208,11 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
||||
});
|
||||
|
||||
// set up js
|
||||
// todo: do we need babel-loader? It's useful to support it
|
||||
config.module
|
||||
.rule('js')
|
||||
.test(/\.js$/)
|
||||
.exclude.add(/node_modules/)
|
||||
.end()
|
||||
.use('babel-loader')
|
||||
.loader('babel-loader')
|
||||
.options({
|
||||
generatorOpts: {
|
||||
compact: false,
|
||||
},
|
||||
});
|
||||
.end();
|
||||
|
||||
config.module
|
||||
.rule('workers')
|
||||
|
Reference in New Issue
Block a user