@@ -46,19 +46,18 @@ index 5ba13096b98047ff33e4d44167c2a069ccc5e69d..a00b5979e3b5deb4ba315b4635c7e5d2
46
46
}
47
47
}
48
48
diff --git a/lib/internal/modules/esm/resolve.js b/lib/internal/modules/esm/resolve.js
49
- index 61c043e35c6ce9ef9d7255e009162289e80eaf4d..0c41492aa9652112df0b839361570a832daf3b13 100644
49
+ index bfd9bd3d127404de1cbb6f30c43ab0342590759d..9e7d8ef0adef3b68a3ec186e4b218f591aa69266 100644
50
50
--- a/lib/internal/modules/esm/resolve.js
51
51
+++ b/lib/internal/modules/esm/resolve.js
52
- @@ -791 ,6 +791,8 @@ function parsePackageName(specifier , base) {
53
- return { packageName, packageSubpath, isScoped } ;
52
+ @@ -751 ,6 +751,7 @@ function packageImportsResolve(name , base, conditions ) {
53
+ throw importNotDefined(name, packageJSONUrl, base) ;
54
54
}
55
55
56
56
+ const electronTypes = ['electron', 'electron/main', 'electron/common', 'electron/renderer'];
57
- +
57
+
58
58
/**
59
59
* Resolves a package specifier to a URL.
60
- * @param {string} specifier - The package specifier to resolve.
61
- @@ -804,6 +806,11 @@ function packageResolve(specifier, base, conditions) {
60
+ @@ -765,6 +766,11 @@ function packageResolve(specifier, base, conditions) {
62
61
return new URL('node:' + specifier);
63
62
}
64
63
@@ -67,9 +66,10 @@ index 61c043e35c6ce9ef9d7255e009162289e80eaf4d..0c41492aa9652112df0b839361570a83
67
66
+ return new URL('electron:electron');
68
67
+ }
69
68
+
70
- const { packageName, packageSubpath, isScoped } =
71
- parsePackageName(specifier, base);
69
+ const { packageJSONUrl, packageJSONPath, packageSubpath } = packageJsonReader.getPackageJSONURL(specifier, base);
72
70
71
+ const packageConfig = packageJsonReader.read(packageJSONPath, { __proto__: null, specifier, base, isESM: true });
72
+
73
73
diff --git a/lib/internal/modules/esm/translators.js b/lib/internal/modules/esm/translators.js
74
74
index 491dc3f450733a9181096a145cfa508767682658..23ed971daebdda3cb627907ffa3626daaa5b5b7b 100644
75
75
--- a/lib/internal/modules/esm/translators.js
0 commit comments