Skip to content

Commit 8562d3e

Browse files
mnugterhaoqunjiang
authored andcommitted
feat: add .mjs files as transpileable files (#3485)
1 parent f2a6db2 commit 8562d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-plugin-babel/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = (api, options) => {
2525

2626
const jsRule = webpackConfig.module
2727
.rule('js')
28-
.test(/\.jsx?$/)
28+
.test(/\.m?jsx?$/)
2929
.exclude
3030
.add(filepath => {
3131
// always transpile js in vue files

0 commit comments

Comments
 (0)