Skip to content

fix(@angular-devkit/build-angular): improve webpack loader resolution #13687

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

Merged
merged 1 commit into from
Feb 19, 2019

Conversation

clydin
Copy link
Member

@clydin clydin commented Feb 16, 2019

Previously, all loaders either needed to be in the workspace's node modules directory or a node modules directory directly within the build angular package. A package manager can potentially hoist a loader to a node modules location inbetween the two and cause loader resolution to fail. This change causes webpack to check all intermediate node modules directories in addition to the initial two locations.

Partial fix for #13680

@clydin clydin added the target: patch This PR is targeted for the next patch release label Feb 16, 2019
@clydin clydin requested a review from filipesilva February 16, 2019 02:20
@clydin clydin force-pushed the fix-pnpm branch 2 times, most recently from 04e17f2 to 4be57b5 Compare February 18, 2019 01:03
Copy link
Contributor

@filipesilva filipesilva left a comment

Choose a reason for hiding this comment

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

I think the changes themselves look fine but the size test says polyfills has increased by 41kb. That's odd because these changes shouldn't affect bundle size. Can you take a look?

Previously, all loaders either needed to be in the workspace's node modules directory or a node modules directory directly within the build angular package.  A package manager can potentially hoist a loader to a node modules location inbetween the two and causing loader resolution to fail.  This change causes webpack to check all intermediate node modules directories in addition to the initial two locations.
@clydin
Copy link
Member Author

clydin commented Feb 18, 2019

Size check was unrelated to this PR.

@kyliau kyliau merged commit 4751fc0 into angular:master Feb 19, 2019
@clydin clydin deleted the fix-pnpm branch February 19, 2019 22:10
@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 Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants