Commit 80131d0
fix(web): resolve pnpm strict-mode build failures for react-router and Node.js builtins
- Add react-router as direct dependency for pnpm strict module resolution
- Add nodeBuiltinStubs Vite plugin to shim crypto/path/module imports from
@objectstack/core that leak into the browser bundle
- Exclude @objectstack/core from Vite optimizeDeps pre-bundling
- Add react-router to Vite optimizeDeps.include for proper deduplication
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 221c1e6 commit 80131d0
3 files changed
+40
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
18 | 49 | | |
19 | | - | |
| 50 | + | |
20 | 51 | | |
21 | 52 | | |
22 | 53 | | |
| |||
32 | 63 | | |
33 | 64 | | |
34 | 65 | | |
| 66 | + | |
35 | 67 | | |
36 | 68 | | |
37 | 69 | | |
38 | 70 | | |
39 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
40 | 75 | | |
41 | 76 | | |
42 | 77 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments