Skip to content

Commit 7a423d6

Browse files
authored
fix(clerk-js,ui): Pin rspack to 1.7.x and disable lazy compilation (#8378)
1 parent 93855c2 commit 7a423d6

7 files changed

Lines changed: 33 additions & 11 deletions

File tree

.changeset/rare-baboons-attack.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/clerk-js/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@
106106
"@clerk/testing": "workspace:^",
107107
"@emotion/react": "11.11.1",
108108
"@rsdoctor/rspack-plugin": "^0.4.13",
109-
"@rspack/cli": "^1.6.0",
110-
"@rspack/core": "^1.6.0",
109+
"@rspack/cli": "catalog:rspack",
110+
"@rspack/core": "catalog:rspack",
111+
"@rspack/plugin-react-refresh": "catalog:rspack",
111112
"@types/cloudflare-turnstile": "^0.2.2",
112113
"@types/webpack-env": "^1.18.8",
113114
"bundlewatch": "^0.4.1",

packages/clerk-js/rspack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ const devConfig = ({ mode, env }) => {
469469
type: 'memory',
470470
},
471471
},
472+
lazyCompilation: false,
472473
};
473474
};
474475

packages/ui/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@
114114
"devDependencies": {
115115
"@floating-ui/react-dom": "^2.1.8",
116116
"@rsdoctor/rspack-plugin": "^0.4.13",
117-
"@rspack/cli": "^1.7.11",
118-
"@rspack/core": "^1.7.11",
119-
"@rspack/plugin-react-refresh": "^1.6.2",
117+
"@rspack/cli": "catalog:rspack",
118+
"@rspack/core": "catalog:rspack",
119+
"@rspack/plugin-react-refresh": "catalog:rspack",
120120
"@svgr/rollup": "^8.1.0",
121121
"@svgr/webpack": "^6.5.1",
122122
"@types/webpack-env": "^1.18.8",

packages/ui/rspack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ const devConfig = (mode, env) => {
287287
type: 'memory',
288288
},
289289
},
290+
lazyCompilation: false,
290291
// Only externalize React when using the shared variant (e.g., with @clerk/react).
291292
// For standalone usage or non-React frameworks, bundle React normally.
292293
...(useSharedReact ? { externals: [sharedReactExternalsHandler] } : {}),

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ catalogs:
2020
typescript: 5.8.3
2121
vue: 3.5.32
2222
zx: 8.8.5
23+
rspack:
24+
'@rspack/cli': 1.7.11
25+
'@rspack/core': 1.7.11
26+
'@rspack/plugin-react-refresh': 1.6.2
2327
module-manager:
2428
'@base-org/account': 2.0.1
2529
'@coinbase/wallet-sdk': 4.3.7

0 commit comments

Comments
 (0)