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

[INTERNAL] Bundler: Ignore non-JS resources when creating module name mapping #945

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

RandomByte
Copy link
Member

@RandomByte RandomByte commented Oct 10, 2023

This leads to issues where non-JS resources tagged as "IsDebugVariant" (like source map resources) where processed since ModuleName#getNonDebugName can only handle .js and .css extensions.

… mapping

This lead to issues where non-JS resources tagged as "IsDebugVariant"
(like source map resources) where processed since
ModuleName#getNonDebugName can only handle .js and .css extensions.
@RandomByte RandomByte requested a review from a team October 10, 2023 15:27
@coveralls
Copy link

Coverage Status

coverage: 94.461% (+0.002%) from 94.459% when pulling 0e465c4 on module-name-mapping-fix-map-resource-handling into f1c57ac on main.

Copy link
Member

@flovogt flovogt left a comment

Choose a reason for hiding this comment

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

As far as I see, you have started a smoke test run (id: 1518), so smoke tests fails. lets have a deeper look into it together.

Update: failing smoke test happens also on main (id: 1517), so failing smoke test is not related to this PR I guess.

@RandomByte
Copy link
Member Author

Smoke tests will still fail after this PR is merged. However instead of failing due to an exception (which was caused by this not being able to resolve non-debug names for .map resources), it's only failing because of new warning logs now.

@RandomByte RandomByte merged commit 4f54a62 into main Oct 11, 2023
@RandomByte RandomByte deleted the module-name-mapping-fix-map-resource-handling branch October 11, 2023 07:56
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.

4 participants