Skip to content

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

Merged
alan-agius4 merged 2 commits intoangular:masterfrom
alan-agius4:esm-config-webpack
Jan 24, 2022
Merged

fix(@angular-devkit/build-webpack): correctly handle ESM webpack configurations#22553
alan-agius4 merged 2 commits intoangular:masterfrom
alan-agius4:esm-config-webpack

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
@alan-agius4 alan-agius4 requested a review from dgp1130 January 24, 2022 10:52
@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