@@ -38,11 +38,11 @@ index 605e812d515fc467001e4ab88fc15b4af3fd4aa2..463e76cb1abc0c2fdddba4db2ca2e00f
38
38
const result = dataURLProcessor(url);
39
39
if (result === 'failure') {
40
40
diff --git a/lib/internal/modules/esm/resolve.js b/lib/internal/modules/esm/resolve.js
41
- index f05c6f99c0037193c5802024be46a967d6cf47a0..f3dad958b2ec275992554477b9344214c8c1e2c8 100644
41
+ index ee2cc03892c01141b71571989b18eec387d3c766..c13475102a75d65329908f44def06a60f4a2c4f1 100644
42
42
--- a/lib/internal/modules/esm/resolve.js
43
43
+++ b/lib/internal/modules/esm/resolve.js
44
- @@ -24 ,7 +24 ,7 @@ const {
45
- } = primordials ;
44
+ @@ -25 ,7 +25 ,7 @@ const {
45
+ const assert = require('internal/assert') ;
46
46
const internalFS = require('internal/fs/utils');
47
47
const { BuiltinModule } = require('internal/bootstrap/realm');
48
48
- const { realpathSync } = require('fs');
@@ -60,19 +60,19 @@ index f05c6f99c0037193c5802024be46a967d6cf47a0..f3dad958b2ec275992554477b9344214
60
60
});
61
61
const { search, hash } = resolved;
62
62
diff --git a/lib/internal/modules/esm/translators.js b/lib/internal/modules/esm/translators.js
63
- index d182eedf5e96039e0029d36e51f40b75c6fb2a39..06b31af80ebbfbf35ec787a94f345775eb512ebf 100644
63
+ index 25ee090bbb4884d3e5f2530cc7153f9215754fae..45a0abc6423a4e53e070f3c117fac2a3554b188d 100644
64
64
--- a/lib/internal/modules/esm/translators.js
65
65
+++ b/lib/internal/modules/esm/translators.js
66
- @@ -34 ,7 +34 ,7 @@ const {
66
+ @@ -24 ,7 +24 ,7 @@ const {
67
67
68
68
const { BuiltinModule } = require('internal/bootstrap/realm');
69
69
const assert = require('internal/assert');
70
70
- const { readFileSync } = require('fs');
71
71
+ const fs = require('fs');
72
72
const { dirname, extname, isAbsolute } = require('path');
73
73
const {
74
- loadBuiltinModule ,
75
- @@ -335 ,7 +335 ,7 @@ translators.set('commonjs', async function commonjsStrategy(url, source,
74
+ assertBufferSource ,
75
+ @@ -269 ,7 +269 ,7 @@ translators.set('commonjs', function commonjsStrategy(url, source, isMain) {
76
76
77
77
try {
78
78
// We still need to read the FS to detect the exports.
@@ -81,7 +81,7 @@ index d182eedf5e96039e0029d36e51f40b75c6fb2a39..06b31af80ebbfbf35ec787a94f345775
81
81
} catch {
82
82
// Continue regardless of error.
83
83
}
84
- @@ -403 ,7 +403 ,7 @@ function cjsPreparseModuleExports(filename, source) {
84
+ @@ -336 ,7 +336 ,7 @@ function cjsPreparseModuleExports(filename, source) {
85
85
isAbsolute(resolved)) {
86
86
// TODO: this should be calling the `load` hook chain to get the source
87
87
// (and fallback to reading the FS only if the source is nullish).
@@ -90,3 +90,4 @@ index d182eedf5e96039e0029d36e51f40b75c6fb2a39..06b31af80ebbfbf35ec787a94f345775
90
90
const { exportNames: reexportNames } = cjsPreparseModuleExports(resolved, source);
91
91
for (const name of reexportNames) {
92
92
exportNames.add(name);
93
+
0 commit comments