Commit 4a18510
committed
vfs: lazy-load esm/formats to fix shared library builds
The eager require of 'internal/modules/esm/formats' at module
load time causes a TypeError in shared library builds where the
module is not available. Make the require lazy since it's only
needed when determining module format from file extension.1 parent 7471a75 commit 4a18510
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
399 | 402 | | |
400 | 403 | | |
401 | 404 | | |
| |||
0 commit comments