We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
.mjs
javascript/auto
1 parent f128c0c commit 15b1e1bCopy full SHA for 15b1e1b
packages/@vue/cli-service/lib/config/base.js
@@ -66,6 +66,14 @@ module.exports = (api, options) => {
66
webpackConfig.module
67
.noParse(/^(vue|vue-router|vuex|vuex-router-sync)$/)
68
69
+ webpackConfig.module
70
+ .rule('mjs')
71
+ .test(/\.mjs$/)
72
+ .include
73
+ .add(/node_modules/)
74
+ .end()
75
+ .type('javascript/auto')
76
+
77
// js is handled by cli-plugin-babel ---------------------------------------
78
79
// vue-loader --------------------------------------------------------------
0 commit comments