Commit f56cc3e
fix(sveltekit): Add import attribute for node exports (#16528)
This patch changes the `node` export in the `package.json` file to include
an `import` version (similar to the other exports) to fix
sveltejs/kit#13869 .
In SvelteKit, we're now bundling dependencies on the server that specify
SvelteKit as a dependency or peerDependency. This has caused an issue
where builds with `@sentry/sveltekit` were being bundled incorrectly.
Adding the `import` attribute fixes this so that Vite resolves to the
ESM build of Sentry.
---------
Co-authored-by: Lukas Stracke <[email protected]>1 parent 0635a5b commit f56cc3e
File tree
4 files changed
+9
-5
lines changed- dev-packages/e2e-tests/test-applications
- sveltekit-2-svelte-5
- sveltekit-2
- sveltekit-cloudflare-pages
- packages/sveltekit
4 files changed
+9
-5
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
86 | | - | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
0 commit comments