We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.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