Skip to content

Commit 19d3a66

Browse files
committed
fix: bundle requires browser output in platform
1 parent 7967847 commit 19d3a66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const webgpuAliases = {
4040

4141
const sharedRolldownConfig = {
4242
treeshake: true,
43+
platform: 'browser' as const, // Use browser-compatible CJS interop (avoids node:module)
4344
output: {
4445
format: 'esm' as const,
4546
preserveModules: true,

0 commit comments

Comments
 (0)