Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxikowy committed Jan 4, 2024
1 parent ef9dd13 commit 490915a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ export default defineConfig({
},
// DUE TO BUILD ERROR
chainWebpack(config) {
config.resolve.extensions.add('.mjs');
config.module
.rule('mjs')
.type('javascript/auto')
.rule('mjs$')
.test(/\.mjs$/)
.include.add(/node_modules/);
.include.add(/node_modules/)
.end()
.type('javascript/auto');
},
});

0 comments on commit 490915a

Please sign in to comment.