File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ( / n o d e _ m o d u l e s / )
19+ . type ( 'javascript/auto' )
2020 . end ( )
2121 } ,
2222 transpileDependencies : [ 'json-editor-vue' ] ,
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments