提交 c08b746d 编写于 作者: fxy060608's avatar fxy060608

fix(cli): remove `exclude` options of babel-loader

上级 2a0cc8eb
......@@ -97,7 +97,7 @@ const plugins = [
new WebpackAppPlusNVuePlugin()
]
const excludeModuleReg = /node_modules(?!(\/|\\).*(weex).*)/
// const excludeModuleReg = /node_modules(?!(\/|\\).*(weex).*)/
const rules = [{
test: path.resolve(process.env.UNI_INPUT_DIR, 'pages.json'),
......@@ -119,10 +119,10 @@ const rules = [{
}
},
jsPreprocessorLoader
],
exclude (modulePath) {
return excludeModuleReg.test(modulePath) && modulePath.indexOf('@dcloudio') === -1
}
]
// exclude (modulePath) { // nvue js均提供babel,否则还得提供transpileDependencies配置
// return excludeModuleReg.test(modulePath) && modulePath.indexOf('@dcloudio') === -1
// }
},
{
test: [/\.nvue(\?[^?]+)?$/, /\.vue(\?[^?]+)?$/],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册