├── .cspell.json ├── .editorconfig ├── .github └── workflows │ └── test.yml ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .prettierignore ├── .prettierrc.js ├── LICENSE ├── README.md ├── eslint.config.mjs ├── generate-types-config.js ├── jest.config.js ├── lib ├── AliasFieldPlugin.js ├── AliasPlugin.js ├── AppendPlugin.js ├── CachedInputFileSystem.js ├── CloneBasenamePlugin.js ├── ConditionalPlugin.js ├── DescriptionFilePlugin.js ├── DescriptionFileUtils.js ├── DirectoryExistsPlugin.js ├── ExportsFieldPlugin.js ├── ExtensionAliasPlugin.js ├── FileExistsPlugin.js ├── ImportsFieldPlugin.js ├── JoinRequestPartPlugin.js ├── JoinRequestPlugin.js ├── LogInfoPlugin.js ├── MainFieldPlugin.js ├── ModulesInHierachicDirectoriesPlugin.js ├── ModulesInHierarchicalDirectoriesPlugin.js ├── ModulesInRootPlugin.js ├── NextPlugin.js ├── ParsePlugin.js ├── PnpPlugin.js ├── Resolver.js ├── ResolverFactory.js ├── RestrictionsPlugin.js ├── ResultPlugin.js ├── RootsPlugin.js ├── SelfReferencePlugin.js ├── SymlinkPlugin.js ├── SyncAsyncFileSystemDecorator.js ├── TryNextPlugin.js ├── UnsafeCachePlugin.js ├── UseFilePlugin.js ├── createInnerContext.js ├── forEachBail.js ├── getInnerRequest.js ├── getPaths.js ├── index.js └── util │ ├── entrypoints.js │ ├── identifier.js │ ├── memoize.js │ ├── module-browser.js │ ├── path.js │ └── process-browser.js ├── open-bot.yaml ├── package.json ├── test ├── CachedInputFileSystem.test.js ├── SyncAsyncFileSystemDecorator.test.js ├── __snapshots__ │ ├── alias.test.js.snap │ ├── exportsField.test.js.snap │ ├── fallback.test.js.snap │ ├── importsField.test.js.snap │ └── restrictions.test.js.snap ├── alias.test.js ├── browserField.test.js ├── dependencies.test.js ├── exportsField.test.js ├── extension-alias.test.js ├── extensions.test.js ├── fallback.test.js ├── fixtures │ ├── a.js │ ├── abc.txt │ ├── b.js │ ├── browser-module │ │ ├── browser │ │ │ └── module-a.js │ │ ├── lib │ │ │ ├── browser.js │ │ │ ├── ignore.js │ │ │ ├── main.js │ │ │ ├── replaced.js │ │ │ └── toString.js │ │ ├── node_modules │ │ │ ├── module-a.js │ │ │ ├── module-b.js │ │ │ └── module-c.js │ │ └── package.json │ ├── c.js │ ├── complex.js │ ├── decorated-fs │ │ └── exists.js │ ├── dirOrFile.js │ ├── dirOrFile │ │ └── index.js │ ├── directory-default │ │ └── directory-default.js │ ├── exports-field-and-extension-alias │ │ └── node_modules │ │ │ ├── @org │ │ │ └── pkg │ │ │ │ ├── dist │ │ │ │ ├── string.js │ │ │ │ └── string.test.d.ts │ │ │ │ └── package.json │ │ │ └── pkg │ │ │ ├── dist │ │ │ ├── string.js │ │ │ └── string.test.d.ts │ │ │ └── package.json │ ├── exports-field-error │ │ └── node_modules │ │ │ ├── exports-field │ │ │ └── package.json │ │ │ └── pack1 │ │ │ └── index.js │ ├── exports-field-invalid-package-target │ │ ├── a.js │ │ └── package.json │ ├── exports-field │ │ ├── a.js │ │ ├── node_modules │ │ │ ├── exports-field │ │ │ │ ├── lib │ │ │ │ │ ├── browser.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib2 │ │ │ │ │ │ └── main.js │ │ │ │ │ └── main.js │ │ │ │ ├── main.js │ │ │ │ ├── package.json │ │ │ │ └── x.js │ │ │ └── invalid-exports-field │ │ │ │ ├── index.js │ │ │ │ ├── package.json │ │ │ │ └── umd.js │ │ └── package.json │ ├── exports-field2 │ │ └── node_modules │ │ │ └── exports-field │ │ │ ├── index.js │ │ │ ├── lib │ │ │ ├── browser.js │ │ │ ├── lib2 │ │ │ │ └── main.js │ │ │ └── main.js │ │ │ ├── main.js │ │ │ └── package.json │ ├── exports-field3 │ │ └── node_modules │ │ │ └── exports-field │ │ │ ├── index │ │ │ ├── main.js │ │ │ └── package.json │ ├── extension-alias │ │ ├── dir │ │ │ ├── index.js │ │ │ └── index.ts │ │ ├── dir2 │ │ │ ├── index.js │ │ │ └── index.mts │ │ ├── index.js │ │ ├── index.mjs │ │ ├── index.mts.js │ │ └── index.ts │ ├── extensions │ │ ├── dir │ │ │ ├── index.js │ │ │ └── index.ts │ │ ├── foo.js │ │ ├── foo.ts │ │ ├── index.js │ │ ├── index.ts │ │ ├── node_modules │ │ │ ├── module.js │ │ │ └── module │ │ │ │ └── index.ts │ │ └── package.json │ ├── file.load1 │ ├── file.load2 │ ├── foo │ │ ├── index.js │ │ └── package.json │ ├── imports-exports-wildcard │ │ └── node_modules │ │ │ └── m │ │ │ ├── package.json │ │ │ └── src │ │ │ ├── features │ │ │ ├── f.js │ │ │ ├── internal │ │ │ │ └── file.js │ │ │ └── y │ │ │ │ └── y.js │ │ │ ├── internal │ │ │ └── i.js │ │ │ ├── middle-1 │ │ │ ├── f.js │ │ │ └── nested │ │ │ │ └── f.js │ │ │ ├── middle-2 │ │ │ └── nested │ │ │ │ └── f.js │ │ │ ├── middle-3 │ │ │ └── nested │ │ │ │ └── f │ │ │ │ └── nested │ │ │ │ └── f.js │ │ │ ├── middle-4 │ │ │ └── f │ │ │ │ └── f.js │ │ │ ├── middle-5 │ │ │ ├── f$ │ │ │ │ └── $.js │ │ │ └── f │ │ │ │ └── $.js │ │ │ └── middle │ │ │ ├── f.js │ │ │ └── nested │ │ │ └── f.js │ ├── imports-field-different │ │ ├── a.js │ │ └── package.json │ ├── imports-field │ │ ├── a.js │ │ ├── b.js │ │ ├── dir │ │ │ └── b.js │ │ ├── node_modules │ │ │ ├── a │ │ │ │ ├── lib │ │ │ │ │ ├── browser.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib2 │ │ │ │ │ │ └── main.js │ │ │ │ │ └── main.js │ │ │ │ ├── main.js │ │ │ │ ├── package.json │ │ │ │ └── x.js │ │ │ └── c │ │ │ │ └── index.js │ │ └── package.json │ ├── imports-slash-pattern │ │ ├── package.json │ │ └── src │ │ │ ├── nested │ │ │ └── deep.js │ │ │ └── utils.js │ ├── incorrect-package │ │ ├── pack1 │ │ │ ├── a.js │ │ │ └── package.json │ │ └── pack2 │ │ │ ├── a.js │ │ │ └── package.json │ ├── issue-238 │ │ ├── package.json │ │ └── src │ │ │ ├── a │ │ │ └── config.js │ │ │ └── common │ │ │ └── config │ │ │ └── myObjectFile.js │ ├── lib │ │ └── complex1.js │ ├── main-field-self │ │ ├── index.js │ │ └── package.json │ ├── main-field-self2 │ │ ├── index.js │ │ └── package.json │ ├── main1.js │ ├── main2.js │ ├── main3.js │ ├── multiple_modules │ │ └── node_modules │ │ │ └── m1 │ │ │ └── a.js │ ├── no#fragment │ │ └── # │ │ │ └── #.js │ ├── no.js │ ├── node_modules │ │ ├── complexm │ │ │ ├── node_modules │ │ │ │ └── m1 │ │ │ │ │ ├── a.js │ │ │ │ │ └── index.js │ │ │ ├── step1.js │ │ │ └── step2.js │ │ ├── invalidPackageJson │ │ │ └── package.json │ │ ├── m1 │ │ │ ├── a.js │ │ │ └── b.js │ │ ├── m2 │ │ │ └── b.js │ │ └── recursive-module │ │ │ ├── file.js │ │ │ └── index.js │ ├── pnp-a │ │ └── m2 │ │ │ └── a.js │ ├── pnp │ │ ├── pkg │ │ │ ├── dir │ │ │ │ └── index.js │ │ │ ├── index.js │ │ │ ├── main.js │ │ │ ├── package-alias │ │ │ │ ├── browser.js │ │ │ │ └── index.js │ │ │ ├── package.json │ │ │ └── typescript │ │ │ │ └── index.ts │ │ └── pkg3 │ │ │ ├── a.js │ │ │ └── package.json │ ├── prefer-pnp │ │ └── alternative-modules │ │ │ └── m1 │ │ │ └── b.js │ ├── restrictions │ │ └── node_modules │ │ │ ├── pck1 │ │ │ ├── index.css │ │ │ ├── index.js │ │ │ └── package.json │ │ │ └── pck2 │ │ │ ├── index.css │ │ │ ├── module.js │ │ │ └── package.json │ ├── scoped │ │ └── node_modules │ │ │ └── @scope │ │ │ ├── pack1 │ │ │ ├── main.js │ │ │ └── package.json │ │ │ └── pack2 │ │ │ ├── lib │ │ │ └── index.js │ │ │ ├── main.js │ │ │ └── package.json │ ├── shortcutdir.js │ │ └── a.js │ └── yield │ │ ├── a │ │ ├── foo-2 │ │ │ ├── b │ │ │ └── c │ │ └── foo │ │ │ ├── a │ │ │ └── b │ │ ├── b │ │ └── foo │ │ │ └── a │ │ └── c │ │ └── foo │ │ ├── a │ │ └── package.json ├── forEachBail.test.js ├── fullSpecified.test.js ├── getPaths.test.js ├── identifier.test.js ├── importsField.test.js ├── incorrect-description-file.test.js ├── missing.test.js ├── plugins.test.js ├── pnp.test.js ├── pr-53.test.js ├── resolve.test.js ├── restrictions.test.js ├── roots.test.js ├── scoped-packages.test.js ├── simple.test.js ├── symlink.test.js ├── unsafe-cache.test.js └── yield.test.js ├── tsconfig.json ├── tsconfig.types.json ├── tsconfig.types.test.json ├── types.d.ts └── yarn.lock /.cspell.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/.cspell.json -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /generate-types-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/generate-types-config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/jest.config.js -------------------------------------------------------------------------------- /lib/AliasFieldPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/AliasFieldPlugin.js -------------------------------------------------------------------------------- /lib/AliasPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/AliasPlugin.js -------------------------------------------------------------------------------- /lib/AppendPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/AppendPlugin.js -------------------------------------------------------------------------------- /lib/CachedInputFileSystem.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/CachedInputFileSystem.js -------------------------------------------------------------------------------- /lib/CloneBasenamePlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/CloneBasenamePlugin.js -------------------------------------------------------------------------------- /lib/ConditionalPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/ConditionalPlugin.js -------------------------------------------------------------------------------- /lib/DescriptionFilePlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/DescriptionFilePlugin.js -------------------------------------------------------------------------------- /lib/DescriptionFileUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/DescriptionFileUtils.js -------------------------------------------------------------------------------- /lib/DirectoryExistsPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/DirectoryExistsPlugin.js -------------------------------------------------------------------------------- /lib/ExportsFieldPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/ExportsFieldPlugin.js -------------------------------------------------------------------------------- /lib/ExtensionAliasPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/ExtensionAliasPlugin.js -------------------------------------------------------------------------------- /lib/FileExistsPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/FileExistsPlugin.js -------------------------------------------------------------------------------- /lib/ImportsFieldPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/ImportsFieldPlugin.js -------------------------------------------------------------------------------- /lib/JoinRequestPartPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/JoinRequestPartPlugin.js -------------------------------------------------------------------------------- /lib/JoinRequestPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/JoinRequestPlugin.js -------------------------------------------------------------------------------- /lib/LogInfoPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/LogInfoPlugin.js -------------------------------------------------------------------------------- /lib/MainFieldPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/MainFieldPlugin.js -------------------------------------------------------------------------------- /lib/ModulesInHierachicDirectoriesPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/ModulesInHierachicDirectoriesPlugin.js -------------------------------------------------------------------------------- /lib/ModulesInHierarchicalDirectoriesPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/ModulesInHierarchicalDirectoriesPlugin.js -------------------------------------------------------------------------------- /lib/ModulesInRootPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/ModulesInRootPlugin.js -------------------------------------------------------------------------------- /lib/NextPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/NextPlugin.js -------------------------------------------------------------------------------- /lib/ParsePlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/ParsePlugin.js -------------------------------------------------------------------------------- /lib/PnpPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/PnpPlugin.js -------------------------------------------------------------------------------- /lib/Resolver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/Resolver.js -------------------------------------------------------------------------------- /lib/ResolverFactory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/ResolverFactory.js -------------------------------------------------------------------------------- /lib/RestrictionsPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/RestrictionsPlugin.js -------------------------------------------------------------------------------- /lib/ResultPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/ResultPlugin.js -------------------------------------------------------------------------------- /lib/RootsPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/RootsPlugin.js -------------------------------------------------------------------------------- /lib/SelfReferencePlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/SelfReferencePlugin.js -------------------------------------------------------------------------------- /lib/SymlinkPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/SymlinkPlugin.js -------------------------------------------------------------------------------- /lib/SyncAsyncFileSystemDecorator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/SyncAsyncFileSystemDecorator.js -------------------------------------------------------------------------------- /lib/TryNextPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/TryNextPlugin.js -------------------------------------------------------------------------------- /lib/UnsafeCachePlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/UnsafeCachePlugin.js -------------------------------------------------------------------------------- /lib/UseFilePlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/UseFilePlugin.js -------------------------------------------------------------------------------- /lib/createInnerContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/createInnerContext.js -------------------------------------------------------------------------------- /lib/forEachBail.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/forEachBail.js -------------------------------------------------------------------------------- /lib/getInnerRequest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/getInnerRequest.js -------------------------------------------------------------------------------- /lib/getPaths.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/getPaths.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/util/entrypoints.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/util/entrypoints.js -------------------------------------------------------------------------------- /lib/util/identifier.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/util/identifier.js -------------------------------------------------------------------------------- /lib/util/memoize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/util/memoize.js -------------------------------------------------------------------------------- /lib/util/module-browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/util/module-browser.js -------------------------------------------------------------------------------- /lib/util/path.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/util/path.js -------------------------------------------------------------------------------- /lib/util/process-browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/lib/util/process-browser.js -------------------------------------------------------------------------------- /open-bot.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/open-bot.yaml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/package.json -------------------------------------------------------------------------------- /test/CachedInputFileSystem.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/CachedInputFileSystem.test.js -------------------------------------------------------------------------------- /test/SyncAsyncFileSystemDecorator.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/SyncAsyncFileSystemDecorator.test.js -------------------------------------------------------------------------------- /test/__snapshots__/alias.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/__snapshots__/alias.test.js.snap -------------------------------------------------------------------------------- /test/__snapshots__/exportsField.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/__snapshots__/exportsField.test.js.snap -------------------------------------------------------------------------------- /test/__snapshots__/fallback.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/__snapshots__/fallback.test.js.snap -------------------------------------------------------------------------------- /test/__snapshots__/importsField.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/__snapshots__/importsField.test.js.snap -------------------------------------------------------------------------------- /test/__snapshots__/restrictions.test.js.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/__snapshots__/restrictions.test.js.snap -------------------------------------------------------------------------------- /test/alias.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/alias.test.js -------------------------------------------------------------------------------- /test/browserField.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/browserField.test.js -------------------------------------------------------------------------------- /test/dependencies.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/dependencies.test.js -------------------------------------------------------------------------------- /test/exportsField.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/exportsField.test.js -------------------------------------------------------------------------------- /test/extension-alias.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/extension-alias.test.js -------------------------------------------------------------------------------- /test/extensions.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/extensions.test.js -------------------------------------------------------------------------------- /test/fallback.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fallback.test.js -------------------------------------------------------------------------------- /test/fixtures/a.js: -------------------------------------------------------------------------------- 1 | module.exports = function a() { 2 | return "This is a"; 3 | }; 4 | -------------------------------------------------------------------------------- /test/fixtures/abc.txt: -------------------------------------------------------------------------------- 1 | abc -------------------------------------------------------------------------------- /test/fixtures/b.js: -------------------------------------------------------------------------------- 1 | module.exports = function b() { 2 | return "This is b"; 3 | }; 4 | -------------------------------------------------------------------------------- /test/fixtures/browser-module/browser/module-a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/browser-module/lib/browser.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/browser-module/lib/ignore.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/browser-module/lib/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/browser-module/lib/replaced.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/browser-module/lib/toString.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/browser-module/node_modules/module-a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/browser-module/node_modules/module-b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/browser-module/node_modules/module-c.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/browser-module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/browser-module/package.json -------------------------------------------------------------------------------- /test/fixtures/c.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/c.js -------------------------------------------------------------------------------- /test/fixtures/complex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/complex.js -------------------------------------------------------------------------------- /test/fixtures/decorated-fs/exists.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/dirOrFile.js: -------------------------------------------------------------------------------- 1 | module.exports = "file"; 2 | -------------------------------------------------------------------------------- /test/fixtures/dirOrFile/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "dir"; 2 | -------------------------------------------------------------------------------- /test/fixtures/directory-default/directory-default.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/exports-field-and-extension-alias/node_modules/@org/pkg/dist/string.js: -------------------------------------------------------------------------------- 1 | export default "string"; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field-and-extension-alias/node_modules/@org/pkg/dist/string.test.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field-and-extension-alias/node_modules/@org/pkg/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/exports-field-and-extension-alias/node_modules/@org/pkg/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-field-and-extension-alias/node_modules/pkg/dist/string.js: -------------------------------------------------------------------------------- 1 | export default "string"; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field-and-extension-alias/node_modules/pkg/dist/string.test.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field-and-extension-alias/node_modules/pkg/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/exports-field-and-extension-alias/node_modules/pkg/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-field-error/node_modules/exports-field/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/exports-field-error/node_modules/exports-field/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-field-error/node_modules/pack1/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/exports-field-invalid-package-target/a.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field-invalid-package-target/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/exports-field-invalid-package-target/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-field/a.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field/node_modules/exports-field/lib/browser.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field/node_modules/exports-field/lib/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/exports-field/node_modules/exports-field/lib/lib2/main.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field/node_modules/exports-field/lib/main.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field/node_modules/exports-field/main.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field/node_modules/exports-field/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/exports-field/node_modules/exports-field/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-field/node_modules/exports-field/x.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field/node_modules/invalid-exports-field/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/exports-field/node_modules/invalid-exports-field/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/exports-field/node_modules/invalid-exports-field/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-field/node_modules/invalid-exports-field/umd.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/exports-field/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/exports-field/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-field2/node_modules/exports-field/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field2/node_modules/exports-field/lib/browser.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field2/node_modules/exports-field/lib/lib2/main.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field2/node_modules/exports-field/lib/main.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field2/node_modules/exports-field/main.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field2/node_modules/exports-field/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/exports-field2/node_modules/exports-field/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-field3/node_modules/exports-field/index: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/exports-field3/node_modules/exports-field/main.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/exports-field3/node_modules/exports-field/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/exports-field3/node_modules/exports-field/package.json -------------------------------------------------------------------------------- /test/fixtures/extension-alias/dir/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extension-alias/dir/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extension-alias/dir2/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extension-alias/dir2/index.mts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extension-alias/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extension-alias/index.mjs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extension-alias/index.mts.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extension-alias/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extensions/dir/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extensions/dir/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extensions/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extensions/foo.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extensions/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extensions/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extensions/node_modules/module.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extensions/node_modules/module/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/extensions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "./index.js" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/file.load1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/file.load2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/foo/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/foo/package.json -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/imports-exports-wildcard/node_modules/m/package.json -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/features/f.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/features/internal/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/features/y/y.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/internal/i.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/middle-1/f.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/middle-1/nested/f.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/middle-2/nested/f.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/imports-exports-wildcard/node_modules/m/src/middle-2/nested/f.js -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/middle-3/nested/f/nested/f.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/middle-4/f/f.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/middle-5/f$/$.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/middle-5/f/$.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/middle/f.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-exports-wildcard/node_modules/m/src/middle/nested/f.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-field-different/a.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/imports-field-different/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/imports-field-different/package.json -------------------------------------------------------------------------------- /test/fixtures/imports-field/a.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/imports-field/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-field/dir/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-field/node_modules/a/lib/browser.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/imports-field/node_modules/a/lib/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-field/node_modules/a/lib/lib2/main.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/imports-field/node_modules/a/lib/main.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/imports-field/node_modules/a/main.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/imports-field/node_modules/a/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/imports-field/node_modules/a/package.json -------------------------------------------------------------------------------- /test/fixtures/imports-field/node_modules/a/x.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/imports-field/node_modules/c/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/imports-field/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/imports-field/package.json -------------------------------------------------------------------------------- /test/fixtures/imports-slash-pattern/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/imports-slash-pattern/package.json -------------------------------------------------------------------------------- /test/fixtures/imports-slash-pattern/src/nested/deep.js: -------------------------------------------------------------------------------- 1 | module.exports = "deep"; 2 | -------------------------------------------------------------------------------- /test/fixtures/imports-slash-pattern/src/utils.js: -------------------------------------------------------------------------------- 1 | module.exports = "utils"; 2 | -------------------------------------------------------------------------------- /test/fixtures/incorrect-package/pack1/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/incorrect-package/pack1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "./a.js", 3 | -------------------------------------------------------------------------------- /test/fixtures/incorrect-package/pack2/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/incorrect-package/pack2/package.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/issue-238/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/issue-238/src/a/config.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/issue-238/src/common/config/myObjectFile.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/lib/complex1.js: -------------------------------------------------------------------------------- 1 | module.exports = "lib complex1"; 2 | -------------------------------------------------------------------------------- /test/fixtures/main-field-self/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/main-field-self/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "./" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/main-field-self2/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/main-field-self2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "." 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/main1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/main1.js -------------------------------------------------------------------------------- /test/fixtures/main2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/main2.js -------------------------------------------------------------------------------- /test/fixtures/main3.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/main3.js -------------------------------------------------------------------------------- /test/fixtures/multiple_modules/node_modules/m1/a.js: -------------------------------------------------------------------------------- 1 | module.exports = function a() { 2 | return "This is nested m1/a"; 3 | }; 4 | -------------------------------------------------------------------------------- /test/fixtures/no#fragment/#/#.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/no.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/node_modules/complexm/node_modules/m1/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "the correct a.js"; 2 | -------------------------------------------------------------------------------- /test/fixtures/node_modules/complexm/node_modules/m1/index.js: -------------------------------------------------------------------------------- 1 | module.exports = " :) " + require("m2/b.js"); 2 | -------------------------------------------------------------------------------- /test/fixtures/node_modules/complexm/step1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/node_modules/complexm/step1.js -------------------------------------------------------------------------------- /test/fixtures/node_modules/complexm/step2.js: -------------------------------------------------------------------------------- 1 | module.exports = "Step2"; 2 | -------------------------------------------------------------------------------- /test/fixtures/node_modules/invalidPackageJson/package.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/node_modules/m1/a.js: -------------------------------------------------------------------------------- 1 | module.exports = function a() { 2 | return "This is m1/a"; 3 | }; 4 | -------------------------------------------------------------------------------- /test/fixtures/node_modules/m1/b.js: -------------------------------------------------------------------------------- 1 | module.exports = function a() { 2 | return "This is m1/b"; 3 | }; 4 | -------------------------------------------------------------------------------- /test/fixtures/node_modules/m2/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "This is m2/b"; 2 | -------------------------------------------------------------------------------- /test/fixtures/node_modules/recursive-module/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/node_modules/recursive-module/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/pnp-a/m2/a.js: -------------------------------------------------------------------------------- 1 | module.exports = function a() { 2 | return "This is nested m1/a"; 3 | }; 4 | -------------------------------------------------------------------------------- /test/fixtures/pnp/pkg/dir/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/pnp/pkg/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/pnp/pkg/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/pnp/pkg/package-alias/browser.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/pnp/pkg/package-alias/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/pnp/pkg/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/pnp/pkg/package.json -------------------------------------------------------------------------------- /test/fixtures/pnp/pkg/typescript/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/pnp/pkg3/a.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/fixtures/pnp/pkg3/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/pnp/pkg3/package.json -------------------------------------------------------------------------------- /test/fixtures/prefer-pnp/alternative-modules/m1/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/restrictions/node_modules/pck1/index.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/restrictions/node_modules/pck1/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/restrictions/node_modules/pck1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "index.js" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/restrictions/node_modules/pck2/index.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/restrictions/node_modules/pck2/module.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/restrictions/node_modules/pck2/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/restrictions/node_modules/pck2/package.json -------------------------------------------------------------------------------- /test/fixtures/scoped/node_modules/@scope/pack1/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/scoped/node_modules/@scope/pack1/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/scoped/node_modules/@scope/pack1/package.json -------------------------------------------------------------------------------- /test/fixtures/scoped/node_modules/@scope/pack2/lib/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/scoped/node_modules/@scope/pack2/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/scoped/node_modules/@scope/pack2/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/scoped/node_modules/@scope/pack2/package.json -------------------------------------------------------------------------------- /test/fixtures/shortcutdir.js/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/yield/a/foo-2/b: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/yield/a/foo-2/c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/yield/a/foo/a: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/yield/a/foo/b: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/yield/b/foo/a: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/yield/c/foo/a: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/yield/c/foo/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fixtures/yield/c/foo/package.json -------------------------------------------------------------------------------- /test/forEachBail.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/forEachBail.test.js -------------------------------------------------------------------------------- /test/fullSpecified.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/fullSpecified.test.js -------------------------------------------------------------------------------- /test/getPaths.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/getPaths.test.js -------------------------------------------------------------------------------- /test/identifier.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/identifier.test.js -------------------------------------------------------------------------------- /test/importsField.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/importsField.test.js -------------------------------------------------------------------------------- /test/incorrect-description-file.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/incorrect-description-file.test.js -------------------------------------------------------------------------------- /test/missing.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/missing.test.js -------------------------------------------------------------------------------- /test/plugins.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/plugins.test.js -------------------------------------------------------------------------------- /test/pnp.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/pnp.test.js -------------------------------------------------------------------------------- /test/pr-53.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/pr-53.test.js -------------------------------------------------------------------------------- /test/resolve.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/resolve.test.js -------------------------------------------------------------------------------- /test/restrictions.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/restrictions.test.js -------------------------------------------------------------------------------- /test/roots.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/roots.test.js -------------------------------------------------------------------------------- /test/scoped-packages.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/scoped-packages.test.js -------------------------------------------------------------------------------- /test/simple.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/simple.test.js -------------------------------------------------------------------------------- /test/symlink.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/symlink.test.js -------------------------------------------------------------------------------- /test/unsafe-cache.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/unsafe-cache.test.js -------------------------------------------------------------------------------- /test/yield.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/test/yield.test.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.types.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/tsconfig.types.json -------------------------------------------------------------------------------- /tsconfig.types.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/tsconfig.types.test.json -------------------------------------------------------------------------------- /types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/types.d.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/enhanced-resolve/HEAD/yarn.lock --------------------------------------------------------------------------------