Commit fd7f0a9
committed
[WiP] Try to fix Closure when building with
Details:
```
building:ERROR: Closure compiler run failed:
building:ERROR: /tmp/emscripten_temp_j4p9p4rt/vips-es6.jso3.js:5791:28: ERROR - [JSC_UNDEFINED_VARIABLE] variable process is undeclared
5791| var wasmfsNodeIsWindows = !!process.platform.match(/^win/);
^^^^^^^
building:ERROR: /tmp/emscripten_temp_j4p9p4rt/vips-es6.jso3.js:6006:15: ERROR - [JSC_UNDEFINED_VARIABLE] variable require is undeclared
6006| var nodePath = require("node:path");
^^^^^^^
2 error(s), 0 warning(s)
```-sENVIRONMENT=web
1 parent 7263eff commit fd7f0a9
2 files changed
+49
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
10 | 30 | | |
11 | 31 | | |
12 | 32 | | |
| |||
194 | 214 | | |
195 | 215 | | |
196 | 216 | | |
197 | | - | |
| 217 | + | |
198 | 218 | | |
199 | 219 | | |
200 | 220 | | |
| |||
228 | 248 | | |
229 | 249 | | |
230 | 250 | | |
231 | | - | |
| 251 | + | |
232 | 252 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9292 | 9292 | | |
9293 | 9293 | | |
9294 | 9294 | | |
| 9295 | + | |
| 9296 | + | |
| 9297 | + | |
| 9298 | + | |
| 9299 | + | |
| 9300 | + | |
| 9301 | + | |
| 9302 | + | |
| 9303 | + | |
| 9304 | + | |
| 9305 | + | |
| 9306 | + | |
| 9307 | + | |
| 9308 | + | |
| 9309 | + | |
| 9310 | + | |
| 9311 | + | |
| 9312 | + | |
| 9313 | + | |
| 9314 | + | |
| 9315 | + | |
| 9316 | + | |
| 9317 | + | |
| 9318 | + | |
| 9319 | + | |
9295 | 9320 | | |
9296 | 9321 | | |
9297 | 9322 | | |
| |||
0 commit comments