Commit aa7cfdd
fix(platform): give Turbopack a wildcard
Turbopack's `resolveAlias` doesn't do webpack-style prefix matching, so
`{ '@platform': PLATFORM_ALIAS }` left every static `@platform/*` import
unresolved on the Vercel build — `Module not found: Can't resolve
'@platform/analytics'` etc. Webpack rejects the `/*` wildcard form, so
the two bundlers need different shapes for the same mapping. Split the
alias map: `'@platform/*': '<pkg>/*'` for Turbopack,
`'@platform': '<pkg>'` for webpack.
Co-Authored-By: Claude Opus 4.7 <[email protected]>@platform/* alias1 parent c261b2c commit aa7cfdd
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
89 | | - | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | | - | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
0 commit comments