Skip to content

Commit fb42477

Browse files
committed
docs: unify codes
1 parent a1f4842 commit fb42477

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,8 @@ module.exports = {
738738
// Getting webpack to recognize the `.mjs` file
739739
config.module
740740
.rule('mjs')
741-
.type('javascript/auto')
742741
.include.add(/node_modules/)
742+
.type('javascript/auto')
743743
.end()
744744
},
745745
}

demo/vue-cli3/vue.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ module.exports = {
44
rules: [
55
{
66
test: /\.mjs$/,
7-
type: 'javascript/auto',
87
include: /node_modules/,
8+
type: 'javascript/auto',
99
},
1010
],
1111
},
@@ -15,8 +15,8 @@ module.exports = {
1515
config.module
1616
.rule('mjs')
1717
// .test(/\.mjs$/)
18-
.type('javascript/auto')
1918
.include.add(/node_modules/)
19+
.type('javascript/auto')
2020
.end()
2121
},
2222
transpileDependencies: ['json-editor-vue'],

docs/README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@ module.exports = {
736736
// 让 webpack 识别 `.mjs` 文件
737737
config.module
738738
.rule('mjs')
739-
.type('javascript/auto')
740739
.include.add(/node_modules/)
740+
.type('javascript/auto')
741741
.end()
742742
},
743743
}

0 commit comments

Comments
 (0)