Skip to content

Commit b1914c2

Browse files
authored
Prevent node:module import processing by Webpack (#485)
Webpack is unaware of `node:module` imports and struggles to process them. The change disables bundling for the import added in #481. Fixes #483
1 parent 843f4d2 commit b1914c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/wasmJs/src/node/nodeModulesWasmJs.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package kotlinx.io.node
77

88
@JsFun("""
99
(globalThis.module = (typeof process !== 'undefined') && (process.release.name === 'node') ?
10-
await import('node:module') : void 0, () => {})
10+
await import(/* webpackIgnore: true */'node:module') : void 0, () => {})
1111
""")
1212
internal external fun persistModule()
1313

0 commit comments

Comments
 (0)