Skip to content

Commit 9320c4f

Browse files
authored
fix(backend): bundle cookie package to fix cjs/esm issues (#7545)
1 parent a4e6932 commit 9320c4f

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

.changeset/rotten-months-repair.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@clerk/backend": patch
3+
---
4+
5+
Move cookie to devDependencies and bundle it within @clerk/backend to fix module compatibility problems in TanStack Start apps.
6+

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@
111111
"dependencies": {
112112
"@clerk/shared": "workspace:^",
113113
"@clerk/types": "workspace:^",
114-
"cookie": "1.0.2",
115114
"standardwebhooks": "^1.0.0",
116115
"tslib": "catalog:repo"
117116
},
118117
"devDependencies": {
119118
"@edge-runtime/vm": "5.0.0",
119+
"cookie": "1.0.2",
120120
"msw": "2.11.6",
121121
"npm-run-all": "^4.1.5",
122122
"snakecase-keys": "9.0.2",

packages/backend/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default defineConfig(overrideOptions => {
2121
bundle: true,
2222
clean: true,
2323
minify: false,
24-
noExternal: ['snakecase-keys'],
24+
noExternal: ['snakecase-keys', 'cookie'],
2525
};
2626

2727
const esm: Options = {

pnpm-lock.yaml

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)