Commit eb5e113
committed
Avoid importing Node's modules on demand
Remove `requireNodeFS()` in favor of always importing these Node
modules.
These `require()`'s will always be used on Node.js, except when
linking with `-sSINGLE_FILE`. But in that case, `stdin` usage,
or using the `-sMAIN_MODULE` and/or `-sNODERAWFS` options would
still depend on these imports.1 parent 84ad56f commit eb5e113
4 files changed
+4
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
19 | 10 | | |
20 | 11 | | |
21 | 12 | | |
| |||
24 | 15 | | |
25 | 16 | | |
26 | 17 | | |
27 | | - | |
28 | 18 | | |
29 | 19 | | |
30 | 20 | | |
| |||
47 | 37 | | |
48 | 38 | | |
49 | 39 | | |
50 | | - | |
51 | 40 | | |
52 | 41 | | |
53 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
775 | 774 | | |
776 | 775 | | |
777 | 776 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | 261 | | |
263 | 262 | | |
264 | 263 | | |
| |||
423 | 422 | | |
424 | 423 | | |
425 | 424 | | |
426 | | - | |
427 | 425 | | |
428 | 426 | | |
429 | 427 | | |
| |||
0 commit comments