Commit 771fd19
fix: add crypto external for Vite builds to support @objectstack/core@2.0.4
@objectstack/core@2.0.4 statically imports Node.js crypto module for plugin
hashing. The code has a browser fallback, so we mark crypto as external in
both the console and msw-todo Vite configs to fix browser bundle builds.
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 1a9bea1 commit 771fd19
2 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
0 commit comments