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

[Refactor] importType: use is-core-module instead of resolve/lib/core #1926

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Oct 19, 2020

This PR replaces resolve/lib/core by is-core-module is suggested in browserify/resolve@1222da1

context: Babel e2e test is failing because resolve/lib/core is deprecated: https://app.circleci.com/pipelines/github/babel/babel/4244/workflows/de314db0-9b52-44c8-b6a5-9ca7d4b2cfd6/jobs/30580

/cc @ljharb

@ljharb
Copy link
Member

ljharb commented Oct 19, 2020

@JLHwung thanks; the deprecation warning has been removed in resolve v1.18.1, so this should be "fixed" for you, but this change is still a good idea.

@ljharb ljharb force-pushed the resolve-lib-core-is-deprecated branch from 3dde3f2 to ccd4ccc Compare October 19, 2020 20:59
@ljharb ljharb changed the title Replace resolve/lib/core by is-core-module [Refactor] importType: use is-core-module instead of resolve/lib/core Oct 19, 2020
@ljharb ljharb force-pushed the resolve-lib-core-is-deprecated branch from ccd4ccc to 5e1baf3 Compare October 19, 2020 21:00
@coveralls
Copy link

coveralls commented Oct 19, 2020

Coverage Status

Coverage remained the same at 97.904% when pulling 13aa29c on JLHwung:resolve-lib-core-is-deprecated into a00727e on benmosher:master.

@ljharb ljharb force-pushed the resolve-lib-core-is-deprecated branch from 5e1baf3 to 13aa29c Compare October 19, 2020 21:43
@ljharb ljharb merged commit 13aa29c into import-js:master Oct 19, 2020
@@ -105,6 +105,7 @@
"eslint-import-resolver-node": "^0.3.4",
"eslint-module-utils": "^2.6.0",
"has": "^1.0.3",
"is-core-module": "^1.0.2",
Copy link
Member

Choose a reason for hiding this comment

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

oops, this should have been v2, not v1.

@JLHwung JLHwung deleted the resolve-lib-core-is-deprecated branch April 28, 2021 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants