Skip to content
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

Use .index/.indexDeps for module resolution #30

Merged
merged 3 commits into from
Jun 29, 2019
Merged

Use .index/.indexDeps for module resolution #30

merged 3 commits into from
Jun 29, 2019

Conversation

goto-bus-stop
Copy link
Member

@goto-bus-stop goto-bus-stop commented Jun 28, 2019

Based on @laduke's test case.

When using -r, the row.file property doesn't contain a full file path, while row.deps does. So it was possible that we'd look up a full file path but it was never added to the relevant Map. (this should probably be addressed in browserify too!)

row.index and row.indexDeps do reliably match, so we can use those instead. common-shake accepts integers as module names so everything is fine.

Fixes #21
Fixes #29

laduke and others added 3 commits June 26, 2019 12:31
Test needs work. Don't want to add that net-browserify-stub dep

It seems to not like it when you -r something from node_modules; it was OK
when you -r with a path
@goto-bus-stop goto-bus-stop merged commit 009626b into master Jun 29, 2019
@goto-bus-stop goto-bus-stop deleted the dash-r branch June 29, 2019 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors on browserify -r Using b.require with react and react-dom results in an error
2 participants