Skip to content

Commit

Permalink
fix(remix): add esm export for node (#12663)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
topaxi authored Jul 2, 2024
1 parent eec98a3 commit 747e236
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"import": "./build/esm/index.client.js",
"require": "./build/cjs/index.client.js"
},
"import": {
"default": "./build/esm/index.server.js"
},
"node": "./build/cjs/index.server.js"
},
"./import": {
Expand Down

0 comments on commit 747e236

Please sign in to comment.