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-webpack): correctly handle ESM webpack configurations #22553

Merged
merged 2 commits into from
Jan 24, 2022
Merged

fix(@angular-devkit/build-webpack): correctly handle ESM webpack configurations #22553

merged 2 commits into from
Jan 24, 2022

Conversation

alan-agius4
Copy link
Collaborator

Previoiusly, we didn't correctly handle ESM configurations as the import was always downlevelled to require by TypeScript.

Closes #22547

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Jan 24, 2022
@its-dibo
Copy link

nice work <3 @alan-agius4

@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Jan 24, 2022
…igurations

Previoiusly, we didn't correctly handle ESM configurations as the `import` was always downlevelled to `require` by TypeScript.

Closes #22547
@just-jeb
Copy link

@alan-agius4 I believe this will require the same treatment (if any of the builders is ESM itself).
Context: just-jeb/angular-builders#1101 (comment)

Previoiusly, we didn't correctly handle ESM builders as the `import` was always downlevelled to `require` by TypeScript.
@alan-agius4 alan-agius4 merged commit 5def2de into angular:master Jan 24, 2022
@alan-agius4 alan-agius4 deleted the esm-config-webpack branch January 24, 2022 19:33
@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 Feb 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[build_webpack] doesn't work with esm
4 participants