Commit f4817ff
committed
fix(integration): add vite config to exclude clerk packages from esbuild optimization
esbuild (used by Vite's dependency optimizer) does not properly support nested
wildcard patterns in package exports like './internal/clerk-js/*'. When @clerk/ui
imports from these paths, esbuild fails to resolve them during bundling.
Excluding @clerk packages from optimizeDeps prevents Vite from trying to pre-bundle
them with esbuild. These packages are already pre-built and don't need optimization.1 parent 9ee8ee7 commit f4817ff
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments