mirror of
https://gitee.com/openharmony/third_party_weex-loader
synced 2024-11-23 07:20:51 +00:00
parent
bc4dffe0a0
commit
643804588f
@ -129,9 +129,7 @@ function scriptLoaderString (loaders, config, customLoader) {
|
||||
}
|
||||
else {
|
||||
const isTargets = {
|
||||
presets: [loadBabelModule('@babel/preset-env')],
|
||||
plugins: [loadBabelModule('@babel/plugin-transform-modules-commonjs')],
|
||||
comments: 'false'
|
||||
'extends': path.join(__dirname, "../babel.config.js")
|
||||
}
|
||||
if (process.env.DEVICE_LEVEL === DEVICE_LEVEL.RICH) {
|
||||
isTargets['targets'] = 'node 8';
|
||||
|
Loading…
Reference in New Issue
Block a user