未验证 提交 0fd52470 编写于 作者: D deangoku 提交者: GitHub

兼容@vue/cli-plugin-babel@4

上级 a888a512
......@@ -159,7 +159,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
}
// js preprocess
updateJsLoader(rawRules, 'foo.js', /^babel-loader/, {
updateJsLoader(rawRules, 'foo.js', /^(.*[/\\])?babel-loader/, {
loader: resolve('packages/webpack-preprocess-loader'),
options: jsPreprocessOptions
})
......@@ -264,4 +264,4 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
}
}, platformWebpackConfig)
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册