Signed-off-by: 卡哥 <lizhouze@huawei.com>
This commit is contained in:
卡哥 2023-02-03 14:33:31 +08:00
parent bc4dffe0a0
commit 643804588f

View File

@ -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';