Skip to content

refactor(builder): Tag existing debug variants pairs skipped by minify - #1694

Open
maxreichmann wants to merge 2 commits into
mainfrom
fix-dbg-js-mix-in-builds
Open

maxreichmann wants to merge 2 commits into
mainfrom
fix-dbg-js-mix-in-builds

Conversation

@maxreichmann

Copy link
Copy Markdown
Member

The logic introduced in #1659, leaves these skipped resource pairs without the HasDebugVariant and IsDebugVariant tags normally set by minify.

Subsequent tasks such as generateLibraryPreload rely on these tags and produce incorrect output when they are missing. This change sets the tags for skipped pairs as well.

Comment on lines +281 to +283
t.true(taskUtil.setTag.calledWithExactly(withDbg, taskUtil.STANDARD_TAGS.HasDebugVariant),
"Skipped .js is tagged as having a debug variant");
t.true(taskUtil.setTag.calledWithExactly(existingDbg, taskUtil.STANDARD_TAGS.IsDebugVariant),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@matz3 is testing setTag() enough? (testing getTag() would be cleaner?)

This branch has not been deployed

No deployments
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.

1 participant