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 {
|
else {
|
||||||
const isTargets = {
|
const isTargets = {
|
||||||
presets: [loadBabelModule('@babel/preset-env')],
|
'extends': path.join(__dirname, "../babel.config.js")
|
||||||
plugins: [loadBabelModule('@babel/plugin-transform-modules-commonjs')],
|
|
||||||
comments: 'false'
|
|
||||||
}
|
}
|
||||||
if (process.env.DEVICE_LEVEL === DEVICE_LEVEL.RICH) {
|
if (process.env.DEVICE_LEVEL === DEVICE_LEVEL.RICH) {
|
||||||
isTargets['targets'] = 'node 8';
|
isTargets['targets'] = 'node 8';
|
||||||
|
Loading…
Reference in New Issue
Block a user