Skip to content

Commit 747e236

Browse files
authored
fix(remix): add esm export for node (#12663)
We are running remix in ESM mode, but the exports in package.json is pointing to the CommonJS module, which results in the SDK running in CommonJS mode instead of ESM. This lead to the instrumentations not running/detecting properly.
1 parent eec98a3 commit 747e236

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/remix/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
"import": "./build/esm/index.client.js",
2929
"require": "./build/cjs/index.client.js"
3030
},
31+
"import": {
32+
"default": "./build/esm/index.server.js"
33+
},
3134
"node": "./build/cjs/index.server.js"
3235
},
3336
"./import": {

0 commit comments

Comments
 (0)