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

fix(@angular-devkit/build-angular): use URLs for absolute import paths with ESM #21804

Merged
merged 1 commit into from
Sep 23, 2021

Conversation

clydin
Copy link
Member

@clydin clydin commented Sep 23, 2021

Absolute import paths, especially on Windows, must be file:// URLs when using ESM. Otherwise, Windows drive letters (e.g., C:) would be interpreted as a protocol instead of a drive letter when performing the import.

@clydin clydin added the target: major This PR is targeted for the next major release label Sep 23, 2021
@google-cla google-cla bot added the cla: yes label Sep 23, 2021
@clydin clydin force-pushed the esm/fix-windows-imports branch 2 times, most recently from e7afaaa to 418784f Compare September 23, 2021 17:16
…s with ESM

Absolute import paths, especially on Windows, must be `file://` URLs when using ESM. Otherwise, Windows drive letters (e.g., `C:`) would be interpreted as a protocol instead of a drive letter when performing the import.
@clydin clydin merged commit 13cceab into angular:master Sep 23, 2021
@clydin clydin deleted the esm/fix-windows-imports branch September 23, 2021 17:59
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants