Commit 661dbe5
committed
build: copy uFuzzy from node_modules at build instead of vendoring it
The python env select popup inlines uFuzzy as a <script> in its HTML
string, so it needs the IIFE build as a file in the packaged app. That
file was committed under src/assets and refreshed by hand through an
update-ufuzzy script, which drifts: #988 bumped @leeoniya/ufuzzy to
1.0.19 but the vendored copy stayed on the old build.
Copy it from node_modules at build time instead, like toolkit.min.js
right above it in copyassets. The pinned dependency is the single source
of truth, the vendored blob and the update-ufuzzy script both go away,
and the drift cannot recur. shx was only used by that script, so it
drops out of devDependencies here too.
Note: AI-assisted (Claude Code). Manually verified by building: build/app-assets/uFuzzy.iife.min.js comes out byte-identical to the 1.0.19 dist, shx is gone from the lockfile with no remaining references, prettier clean, and the e2e suite passes so the popup loads it at runtime.1 parent 661c576 commit 661dbe5
4 files changed
Lines changed: 18 additions & 177 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
208 | 207 | | |
209 | 208 | | |
210 | 209 | | |
211 | | - | |
212 | 210 | | |
213 | 211 | | |
214 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
70 | 84 | | |
71 | 85 | | |
72 | 86 | | |
| |||
This file was deleted.
0 commit comments