Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.

002 - explicit note about inner package behavior being preserved - #19

Closed
bmeck wants to merge 2 commits into
nodejs:masterfrom
bmeck:002-explicit-inner-package-searching
Closed

bmeck wants to merge 2 commits into
nodejs:masterfrom
bmeck:002-explicit-inner-package-searching

Conversation

@bmeck

@bmeck bmeck commented Apr 29, 2016

Copy link
Copy Markdown
Member

this was discussed and intended, but stated poorly. explicit makes it easier to understand.

  • thanks @ljharb for finding this, was not explicitly stated

Comment thread 002-es6-modules.md Outdated
to parent `node_modules` directories recursively as well. This searching
behavior explicitly includes inner package searching such ass `foo/bar`.

Any entry into `node_modules` via paths not starting with "/", "./", or "../" will be using the same mechanism of searching while resolving their **entry point** as `require()`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: line wrap

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, squashed into

- thanks @ljharb for finding this, was not explicitly stated
@bmeck
bmeck force-pushed the 002-explicit-inner-package-searching branch from 8417f1e to 45c502f Compare April 29, 2016 04:17
@Fishrock123 Fishrock123 mentioned this pull request May 4, 2016
4 tasks done
@bmeck
bmeck force-pushed the 002-explicit-inner-package-searching branch from faed67c to 4bec00c Compare May 5, 2016 00:08
@trevnorris

Copy link
Copy Markdown
Contributor

LGTM

trevnorris pushed a commit that referenced this pull request May 12, 2016
Thanks @ljharb for finding that that this was not explicitly stated.

PR-URL: #19
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
trevnorris pushed a commit that referenced this pull request May 12, 2016
Include a note about the "this" value being different in ES modules.

PR-URL: #19
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@trevnorris

Copy link
Copy Markdown
Contributor

Thanks much! Landed in d354f89 and 4212287.

@trevnorris trevnorris closed this May 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants