-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
capture observed behavior for Node 20
- Loading branch information
1 parent
302828b
commit 8d2f0c4
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
diff --git a/node_modules/@greenwood/cli/src/lib/walker-package-ranger.js b/node_modules/@greenwood/cli/src/lib/walker-package-ranger.js | ||
index 5ce30c1..18113cd 100644 | ||
index 5ce30c1..f4f4d0f 100644 | ||
--- a/node_modules/@greenwood/cli/src/lib/walker-package-ranger.js | ||
+++ b/node_modules/@greenwood/cli/src/lib/walker-package-ranger.js | ||
@@ -167,9 +167,14 @@ async function walkPackageJson(packageJson = {}) { | ||
@@ -167,9 +167,15 @@ async function walkPackageJson(packageJson = {}) { | ||
? esmPath | ||
: fallbackPath; | ||
} else if (exportMapEntry.import || exportMapEntry.default) { | ||
- packageExport = exportMapEntry.import | ||
- ? exportMapEntry.import | ||
- : exportMapEntry.default; | ||
+ // TODO this is super slow for some reason? not sure if all the ? | ||
+ // On Node 20 (for .env), this seems faster / not an issue, but then ES Modules Shim is 404??? | ||
+ packageExport = exportMapEntry.import?.default?.default // https://unpkg.com/browse/[email protected]/package.json | ||
+ ? exportMapEntry.import.default.default | ||
+ : exportMapEntry.import?.default // https://unpkg.com/browse/[email protected]/package.json | ||
|