Skip to content

Commit abdb73e

Browse files
s1gr1donurtemizkan
andauthored
fix(remix): Add ESM-compatible exports (#16124)
Vite 6 is more strict with exports. I changed the `exports` section a bit to make it compatible. closes #16120 --------- Co-authored-by: Onur Temizkan <[email protected]>
1 parent 7376508 commit abdb73e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/remix/package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@
2626
"types": "./build/types/index.types.d.ts",
2727
"browser": {
2828
"import": "./build/esm/index.client.js",
29-
"require": "./build/cjs/index.client.js"
29+
"require": "./build/cjs/index.client.js",
30+
"default": "./build/cjs/index.client.js"
3031
},
31-
"node": "./build/cjs/index.server.js"
32+
"node": "./build/cjs/index.server.js",
33+
"worker": {
34+
"import": "./build/esm/cloudflare/index.js",
35+
"require": "./build/cjs/cloudflare/index.js",
36+
"default": "./build/esm/cloudflare/index.js"
37+
}
3238
},
3339
"./cloudflare": {
3440
"import": "./build/esm/cloudflare/index.js",

0 commit comments

Comments
 (0)