-
-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(node-resolve): add new option, modulePaths (#1104)
* [node-resolve] Implement new modulePaths option * Add unit tests distinguishing modulePaths from moduleDirectories * Document new option * Update packages/node-resolve/test/test.js Co-authored-by: Tom Jenkinson <[email protected]> * Update packages/node-resolve/README.md Co-authored-by: Tom Jenkinson <[email protected]> * fixup! Update packages/node-resolve/test/test.js * Reject moduleDirectories containing a slash * chore: arbitrary edit to kick github's actions ui Co-authored-by: Andrew Hyndman <[email protected]> Co-authored-by: Tom Jenkinson <[email protected]> Co-authored-by: Andrew Powell <[email protected]>
- Loading branch information
1 parent
a43a6d6
commit 12d87a4
Showing
10 changed files
with
77 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/node-resolve/test/fixtures/custom-module-path/main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import PACKAGE, {dependency} from 'package-with-dependency'; | ||
|
||
export { PACKAGE, dependency }; |
3 changes: 3 additions & 0 deletions
3
...ode-resolve/test/fixtures/custom-module-path/node_modules/package-with-dependency/main.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...s/custom-module-path/node_modules/package-with-dependency/node_modules/dependency/main.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...tom-module-path/node_modules/package-with-dependency/node_modules/dependency/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...esolve/test/fixtures/custom-module-path/node_modules/package-with-dependency/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters