Commit 359fe55
fix(e2e): add explicit url polyfill for web-extension webpack build
The web-extension bundle pulls jsonschema, which does `require('url')`. The
webpack base config polyfills node builtins via resolve.fallback but had no
`url` entry — it only built because the `url` polyfill package happened to be
present transitively. Dropping the legacy artillery chain removed that
transitive `url`, exposing the gap (CI: "Module not found: Can't resolve 'url'").
Adds `url: require.resolve('url/')` to the fallback and `url` as an explicit
e2e devDependency, so the build no longer depends on `url` being present by
accident. Verified: `test:web-extension:build:sw` compiles successfully.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 65c6f08 commit 359fe55
3 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2864 | 2864 | | |
2865 | 2865 | | |
2866 | 2866 | | |
| 2867 | + | |
2867 | 2868 | | |
2868 | 2869 | | |
2869 | 2870 | | |
| |||
21244 | 21245 | | |
21245 | 21246 | | |
21246 | 21247 | | |
| 21248 | + | |
| 21249 | + | |
| 21250 | + | |
| 21251 | + | |
| 21252 | + | |
| 21253 | + | |
| 21254 | + | |
21247 | 21255 | | |
21248 | 21256 | | |
21249 | 21257 | | |
| |||
21294 | 21302 | | |
21295 | 21303 | | |
21296 | 21304 | | |
21297 | | - | |
| 21305 | + | |
21298 | 21306 | | |
21299 | 21307 | | |
21300 | 21308 | | |
| |||
24688 | 24696 | | |
24689 | 24697 | | |
24690 | 24698 | | |
| 24699 | + | |
| 24700 | + | |
| 24701 | + | |
| 24702 | + | |
| 24703 | + | |
| 24704 | + | |
| 24705 | + | |
| 24706 | + | |
| 24707 | + | |
| 24708 | + | |
24691 | 24709 | | |
24692 | 24710 | | |
24693 | 24711 | | |
| |||
0 commit comments