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

[Deps] use resolve.isCore instead of is-builtin-module for better data/compat #99

Merged
merged 1 commit into from
Feb 4, 2019
Merged

Conversation

ljharb
Copy link
Contributor

@ljharb ljharb commented Jan 30, 2019

Fixes #98.

Premise: replace is-builtin-module with https://unpkg.com/resolve@1.10.0/lib/core.js (require('resolve').isCore), which both has a much more complete and accurate list of "what is a builtin module" (https://unpkg.com/resolve@1.10.0/lib/core.json vs https://unpkg.com/builtin-modules@3.0.0/builtin-modules.json) and will retain compatibility with older node for essentially forever.

@ljharb
Copy link
Contributor Author

ljharb commented Jan 30, 2019

If you like, I can add a test by adding a module name to

tap.test("core module name", function(t) {
that resolve supports but is-builtin-module does not, like worker_threads or v8/tools/arguments?

ljharb referenced this pull request Jan 30, 2019
@aeschright
Copy link

A test would be great, thanks.

@ljharb
Copy link
Contributor Author

ljharb commented Jan 30, 2019

@aeschright updated with a test!

@ljharb
Copy link
Contributor Author

ljharb commented Feb 3, 2019

ping! <3

package.json Outdated Show resolved Hide resolved
@ljharb
Copy link
Contributor Author

ljharb commented Feb 4, 2019

@aeschright fixed! it was a bad rebase on top of the fix to #98.

@aeschright aeschright merged commit f97372c into npm:master Feb 4, 2019
@ljharb ljharb deleted the use_resolve branch February 4, 2019 20:16
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.

Release 2.4.1 is breaking builds that use it such as Karma 0.5.5
2 participants