-
Notifications
You must be signed in to change notification settings - Fork 13k
Disable package.json conditional exports fallback lookups #62310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
andrewbranch
wants to merge
2
commits into
main
Choose a base branch
from
exports-fallbacks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -15,15 +15,35 @@ | |
"File '/node_modules/dep/dist/index.mts' does not exist.", | ||
"File '/node_modules/dep/dist/index.d.mts' does not exist.", | ||
"Failed to resolve under condition 'import'.", | ||
"Saw non-matching condition 'require'.", | ||
"Matched 'exports' condition 'types'.", | ||
"Using 'exports' subpath '.' with target './dist/index.d.ts'.", | ||
"File '/node_modules/dep/dist/index.d.ts' exists - use it as a name resolution result.", | ||
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.", | ||
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.", | ||
"File '/node_modules/dep/package.json' exists according to earlier cached lookups.", | ||
"Entering conditional exports.", | ||
"Matched 'exports' condition 'import'.", | ||
"Using 'exports' subpath '.' with target './dist/index.mjs'.", | ||
"File name '/node_modules/dep/dist/index.mjs' has a '.mjs' extension - stripping it.", | ||
"File '/node_modules/dep/dist/index.mjs' exists - use it as a name resolution result.", | ||
"'package.json' does not have a 'peerDependencies' field.", | ||
"Resolved under condition 'types'.", | ||
"Resolved under condition 'import'.", | ||
"Exiting conditional exports.", | ||
"Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'.", | ||
"======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep/dist/[email protected]'. ========", | ||
"Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update.", | ||
"File '/package.json' does not exist according to earlier cached lookups.", | ||
"Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", | ||
"File '/node_modules/dep/package.json' exists according to earlier cached lookups.", | ||
"File '/node_modules/dep.ts' does not exist.", | ||
"File '/node_modules/dep.tsx' does not exist.", | ||
"File '/node_modules/dep.d.ts' does not exist.", | ||
"'package.json' does not have a 'typesVersions' field.", | ||
"'package.json' does not have a 'typings' field.", | ||
"'package.json' does not have a 'types' field.", | ||
"'package.json' does not have a 'main' field.", | ||
"File '/node_modules/dep/index.ts' does not exist.", | ||
"File '/node_modules/dep/index.tsx' does not exist.", | ||
"File '/node_modules/dep/index.d.ts' does not exist.", | ||
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.", | ||
"Resolving real path for '/node_modules/dep/dist/index.mjs', result '/node_modules/dep/dist/index.mjs'.", | ||
"======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.mjs' with Package ID 'dep/dist/[email protected]'. ========", | ||
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", | ||
"Explicitly specified module resolution kind: 'Node10'.", | ||
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
|
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -15,15 +15,29 @@ | |
"File '/node_modules/dep/dist/index.mts' does not exist.", | ||
"File '/node_modules/dep/dist/index.d.mts' does not exist.", | ||
"Failed to resolve under condition 'import'.", | ||
"Saw non-matching condition 'require'.", | ||
"Matched 'exports' condition 'types'.", | ||
"Using 'exports' subpath '.' with target './dist/index.d.ts'.", | ||
"File '/node_modules/dep/dist/index.d.ts' exists - use it as a name resolution result.", | ||
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.", | ||
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.", | ||
"File '/node_modules/dep/package.json' exists according to earlier cached lookups.", | ||
"Entering conditional exports.", | ||
"Matched 'exports' condition 'import'.", | ||
"Using 'exports' subpath '.' with target './dist/index.mjs'.", | ||
"File name '/node_modules/dep/dist/index.mjs' has a '.mjs' extension - stripping it.", | ||
"File '/node_modules/dep/dist/index.mjs' exists - use it as a name resolution result.", | ||
"'package.json' does not have a 'peerDependencies' field.", | ||
"Resolved under condition 'types'.", | ||
"Resolved under condition 'import'.", | ||
"Exiting conditional exports.", | ||
"Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'.", | ||
"======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep/dist/[email protected]'. ========", | ||
"Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update.", | ||
"File '/package.json' does not exist according to earlier cached lookups.", | ||
"Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", | ||
"File '/node_modules/dep/package.json' exists according to earlier cached lookups.", | ||
"'package.json' does not have a 'typesVersions' field.", | ||
"'package.json' does not have a 'typings' field.", | ||
"'package.json' does not have a 'types' field.", | ||
"'package.json' does not have a 'main' field.", | ||
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.", | ||
"Resolving real path for '/node_modules/dep/dist/index.mjs', result '/node_modules/dep/dist/index.mjs'.", | ||
"======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.mjs' with Package ID 'dep/dist/[email protected]'. ========", | ||
"File '/.ts/package.json' does not exist.", | ||
"File '/package.json' does not exist according to earlier cached lookups.", | ||
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", | ||
|
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -15,15 +15,29 @@ | |
"File '/node_modules/dep/dist/index.mts' does not exist.", | ||
andrewbranch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"File '/node_modules/dep/dist/index.d.mts' does not exist.", | ||
"Failed to resolve under condition 'import'.", | ||
"Saw non-matching condition 'require'.", | ||
"Matched 'exports' condition 'types'.", | ||
"Using 'exports' subpath '.' with target './dist/index.d.ts'.", | ||
"File '/node_modules/dep/dist/index.d.ts' exists - use it as a name resolution result.", | ||
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.", | ||
"Searching all ancestor node_modules directories for fallback extensions: JavaScript.", | ||
"File '/node_modules/dep/package.json' exists according to earlier cached lookups.", | ||
"Entering conditional exports.", | ||
"Matched 'exports' condition 'import'.", | ||
"Using 'exports' subpath '.' with target './dist/index.mjs'.", | ||
"File name '/node_modules/dep/dist/index.mjs' has a '.mjs' extension - stripping it.", | ||
"File '/node_modules/dep/dist/index.mjs' exists - use it as a name resolution result.", | ||
"'package.json' does not have a 'peerDependencies' field.", | ||
"Resolved under condition 'types'.", | ||
"Resolved under condition 'import'.", | ||
"Exiting conditional exports.", | ||
"Resolving real path for '/node_modules/dep/dist/index.d.ts', result '/node_modules/dep/dist/index.d.ts'.", | ||
"======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.d.ts' with Package ID 'dep/dist/[email protected]'. ========", | ||
"Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update.", | ||
"File '/package.json' does not exist according to earlier cached lookups.", | ||
"Loading module 'dep' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", | ||
"File '/node_modules/dep/package.json' exists according to earlier cached lookups.", | ||
"'package.json' does not have a 'typesVersions' field.", | ||
"'package.json' does not have a 'typings' field.", | ||
"'package.json' does not have a 'types' field.", | ||
"'package.json' does not have a 'main' field.", | ||
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.", | ||
"Resolving real path for '/node_modules/dep/dist/index.mjs', result '/node_modules/dep/dist/index.mjs'.", | ||
"======== Module name 'dep' was successfully resolved to '/node_modules/dep/dist/index.mjs' with Package ID 'dep/dist/[email protected]'. ========", | ||
"File '/.ts/package.json' does not exist.", | ||
"File '/package.json' does not exist according to earlier cached lookups.", | ||
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", | ||
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -12,18 +12,11 @@ | |
"File name '/node_modules/acorn-walk/dist/walk.mjs' has a '.mjs' extension - stripping it.", | ||
"File '/node_modules/acorn-walk/dist/walk.mts' does not exist.", | ||
"File '/node_modules/acorn-walk/dist/walk.d.mts' does not exist.", | ||
"Failed to resolve under condition 'import'.", | ||
"Saw non-matching condition 'require'.", | ||
"Matched 'exports' condition 'default'.", | ||
"Using 'exports' subpath '.' with target './dist/walk.js'.", | ||
"File name '/node_modules/acorn-walk/dist/walk.js' has a '.js' extension - stripping it.", | ||
"File '/node_modules/acorn-walk/dist/walk.ts' does not exist.", | ||
"File '/node_modules/acorn-walk/dist/walk.tsx' does not exist.", | ||
"File '/node_modules/acorn-walk/dist/walk.d.ts' exists - use it as a name resolution result.", | ||
"File '/node_modules/acorn-walk/dist/walk.mjs' exists - use it as a name resolution result.", | ||
"'package.json' does not have a 'peerDependencies' field.", | ||
"Resolved under condition 'default'.", | ||
"Resolved under condition 'import'.", | ||
"Exiting conditional exports.", | ||
"======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk/dist/walk.d.ts@8.2.0'. ========", | ||
"======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.mjs' with Package ID 'acorn-walk/dist/walk.mjs@8.2.0'. ========", | ||
"======== Resolving module 'acorn-walk' from '/index.ts'. ========", | ||
"Explicitly specified module resolution kind: 'Bundler'.", | ||
"Resolving in CJS mode with conditions 'import', 'types'.", | ||
|
@@ -38,17 +31,30 @@ | |
"File '/node_modules/acorn-walk/dist/walk.mts' does not exist.", | ||
"File '/node_modules/acorn-walk/dist/walk.d.mts' does not exist.", | ||
"Failed to resolve under condition 'import'.", | ||
"Saw non-matching condition 'require'.", | ||
"Matched 'exports' condition 'default'.", | ||
"Using 'exports' subpath '.' with target './dist/walk.js'.", | ||
"File name '/node_modules/acorn-walk/dist/walk.js' has a '.js' extension - stripping it.", | ||
"File '/node_modules/acorn-walk/dist/walk.ts' does not exist.", | ||
"File '/node_modules/acorn-walk/dist/walk.tsx' does not exist.", | ||
"File '/node_modules/acorn-walk/dist/walk.d.ts' exists - use it as a name resolution result.", | ||
"Resolved under condition 'default'.", | ||
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.", | ||
"Searching all ancestor node_modules directories for fallback extensions: JavaScript, JSON.", | ||
"File '/node_modules/acorn-walk/package.json' exists according to earlier cached lookups.", | ||
"Entering conditional exports.", | ||
"Matched 'exports' condition 'import'.", | ||
"Using 'exports' subpath '.' with target './dist/walk.mjs'.", | ||
"File name '/node_modules/acorn-walk/dist/walk.mjs' has a '.mjs' extension - stripping it.", | ||
"File '/node_modules/acorn-walk/dist/walk.mjs' exists - use it as a name resolution result.", | ||
"Resolved under condition 'import'.", | ||
"Exiting conditional exports.", | ||
"Resolving real path for '/node_modules/acorn-walk/dist/walk.d.ts', result '/node_modules/acorn-walk/dist/walk.d.ts'.", | ||
"======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.d.ts' with Package ID 'acorn-walk/dist/[email protected]'. ========", | ||
"Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update.", | ||
"File '/package.json' does not exist according to earlier cached lookups.", | ||
"Loading module 'acorn-walk' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
"Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration.", | ||
"File '/node_modules/acorn-walk/package.json' exists according to earlier cached lookups.", | ||
"File '/node_modules/acorn-walk.ts' does not exist.", | ||
"File '/node_modules/acorn-walk.tsx' does not exist.", | ||
"File '/node_modules/acorn-walk.d.ts' does not exist.", | ||
"'package.json' does not have a 'typesVersions' field.", | ||
"'package.json' does not have a 'typings' field.", | ||
"'package.json' has 'types' field 'dist/walk.d.ts' that references '/node_modules/acorn-walk/dist/walk.d.ts'.", | ||
"File '/node_modules/acorn-walk/dist/walk.d.ts' exists - use it as a name resolution result.", | ||
"Resolving real path for '/node_modules/acorn-walk/dist/walk.mjs', result '/node_modules/acorn-walk/dist/walk.mjs'.", | ||
"======== Module name 'acorn-walk' was successfully resolved to '/node_modules/acorn-walk/dist/walk.mjs' with Package ID 'acorn-walk/dist/[email protected]'. ========", | ||
"======== Resolving module '@typescript/lib-es5' from '/.src/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", | ||
"Explicitly specified module resolution kind: 'Node10'.", | ||
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.