Commit 149ae91
fix(misc): consolidate magic comments for rolldown
Rolldown's printer only preserves block comments containing
@__PURE__, @__NO_SIDE_EFFECTS__, or @vite-ignore. Standalone
webpackIgnore / turbopackIgnore blocks were stripped from
dist/index.mjs, leaving the surviving @vite-ignore alone and
breaking Next.js Edge / Turbopack builds. Merging all three
directives into a single @vite-ignore-bearing comment lets
rolldown keep the entire block; webpack and turbopack both scan
for their keyword anywhere in adjacent comments.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ebfbb42 commit 149ae91
1 file changed
Lines changed: 8 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | | - | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
0 commit comments