提交 14971f4c 编写于 作者: Y yurj26

fix: webpack4 support import mjs

上级 18d018fa
......@@ -206,6 +206,15 @@ module.exports = function chainWebpack (platformOptions, vueOptions, api) {
if (process.env.BUILD_ENV === 'ali-ide') {
webpackConfig.plugins.delete('progress')
}
// webpack4 support import mjs
if (webpack.version[0] < 5) {
webpackConfig.module
.rule('mjs')
.test(/.mjs$/)
.type('javascript/auto')
}
webpackConfig.resolve.alias
.delete('@')
.set(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册