Commit dcefe24
fix: PDF worker loading — use Vite ?url import for reliable asset resolution
The new URL() pattern failed in production because the worker file URL
didn't match the emitted asset path. Using ?url suffix lets Vite emit
the worker as a hashed asset and return the correct URL.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent bc9eeff commit dcefe24
2 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments