Commit 845b18e
fix: resolve @vuerend/core in Cloudflare Worker environment
vuerend's resolveId hook redirects @vuerend/core to
virtual:vuerend/client-runtime for any environment not named 'server'.
The Cloudflare Worker environment is named 'vuefes_japan_speakers', so
it incorrectly received the client runtime which lacks defineApp and
defineRoute, causing the build to fail with MISSING_EXPORT errors.
Add a pre-plugin that intercepts @vuerend/core for non-server/non-client
environments and resolves it to the runtime-only entry directly, bypassing
vuerend's virtual module.
Also remove the wrangler.jsonc `alias` field which is ignored when using
the Cloudflare Vite plugin (replaced by Vite's resolve.alias).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 86e0513 commit 845b18e
2 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
99 | 119 | | |
100 | 120 | | |
101 | 121 | | |
| |||
203 | 223 | | |
204 | 224 | | |
205 | 225 | | |
| 226 | + | |
206 | 227 | | |
207 | 228 | | |
208 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
0 commit comments