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

Pass URLs to import() rather than paths #11193

Merged
merged 4 commits into from Mar 3, 2020

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Mar 1, 2020

Q                       A
Fixed Issues?
Patch: Bug Fix? Yes
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Native import() expects an URL, but we were passing it an absolute file path. It worked on linux, but fails on windows because C: is parsed as an URL protocol.

nodejs/node#31710

We don't have tests for this, because Jest doesn't support native import() yet.

@nicolo-ribaudo nicolo-ribaudo added PR: Bug Fix 🐛 A type of pull request used for our changelog categories pkg: core labels Mar 1, 2020
@nicolo-ribaudo
Copy link
Member Author

All the failures are probably because resolve doesn't support URLs 🤔

@nicolo-ribaudo nicolo-ribaudo merged commit 114f672 into babel:master Mar 3, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the import-url branch March 3, 2020 18:54
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 3, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: core PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants