Skip to content

Remove include before normalizing loaders, fixes #1201 #1203

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

Closed
wants to merge 1 commit into from
Closed

Remove include before normalizing loaders, fixes #1201 #1203

wants to merge 1 commit into from

Conversation

loilo
Copy link

@loilo loilo commented Mar 23, 2018

This fixes #1201 by creating a local copy of rules which use the include option and then removes it property from that copy.

Rules without the include option are not copied to spare needless operations.

EDIT: Also fixes #1202 (which is a duplicate of #1201).

@loilo
Copy link
Author

loilo commented Mar 23, 2018

In case anyone wants to check it out: I've added the with-fix-1203 branch to the #1201 reproduction repository, which uses this PR to fix the issue.

@yyx990803
Copy link
Member

Thanks for the PR! Unfortunately the fix isn't entirely safe because this would cause all cloned rules to lose the include check. I've implemented a fix with test in 2be5507

@yyx990803 yyx990803 closed this Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants