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

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

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