Skip to content

Commit f9d6e17

Browse files
committed
Properly process js modules in webpack
1 parent a31b08f commit f9d6e17

File tree

2 files changed

+1429
-2283
lines changed

2 files changed

+1429
-2283
lines changed

ui/.neutrinorc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ module.exports = {
9999
]).filter(Boolean)
100100
}));
101101

102+
neutrino.config.module
103+
.rule('js-modules')
104+
.test(/\.mjs?$/)
105+
.type('javascript/auto')
106+
.include
107+
.add(/node_modules/)
108+
.end();
109+
102110
neutrino.config.module
103111
.rule('graphql')
104112
.test(/\.graphql$/)

0 commit comments

Comments
 (0)