提交 3f6eac4a 编写于 作者: Q qiang

fix: 修复使用 cnpm 安装依赖后运行报错的问题 fixed #2177

上级 db033279
......@@ -140,8 +140,8 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
}
}
}
const babelLoaderRe = /^babel-loader|(\/|\\)babel-loader/
const cacheLoaderRe = /^cache-loader|(\/|\\)cache-loader/
const babelLoaderRe = /^babel-loader|(\/|\\|@)babel-loader/
const cacheLoaderRe = /^cache-loader|(\/|\\|@)cache-loader/
return function (webpackConfig) {
// disable js cache-loader
const rawRules = webpackConfig.module.rules
......@@ -319,4 +319,4 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
watchOptions: require('./util').getWatchOptions()
}, platformWebpackConfig)
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册