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(@ngtools/webpack): use Webpack loader context hook to access file emitters #21099

Merged

Conversation

clydin
Copy link
Member

@clydin clydin commented Jun 9, 2021

The Angular Webpack loader will now access the Angular Webpack Plugin's file emitters via the loader context directly. This is instead of using the not fully public Webpack compilation property on the loader context. This change also removes the need to directly alter the Webpack compilation object which previously added an additional property.

… file emitters

The Angular Webpack loader will now access the Angular Webpack Plugin's file emitters via the loader context directly. This is instead of using the not fully public Webpack compilation property on the loader context. This change also removes the need to directly alter the Webpack compilation object which previously added an additional property.
@clydin clydin added the target: minor This PR is targeted for the next minor release label Jun 9, 2021
@google-cla google-cla bot added the cla: yes label Jun 9, 2021
@clydin clydin requested a review from alan-agius4 June 9, 2021 21:31
@@ -314,6 +305,23 @@ export class AngularWebpackPlugin {
});
}

private registerWithCompilation(compilation: Compilation) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT: missing return type

@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Jun 10, 2021
@alan-agius4 alan-agius4 merged commit ca6e9fe into angular:master Jun 10, 2021
@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 Jul 11, 2021
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: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants