Skip to content

Conversation

@Davit-G
Copy link
Contributor

@Davit-G Davit-G commented Jan 14, 2026

Summary

At Canva, we use some transform steps in our webpack config before swc-loader runs, which collects module build info / metadata to be used in the webpack plugins stage. What we noticed is that swc-loader is dropping that additional build info for some reason, which means we won't be able to consume it down the line.

Seems like just adding a third parameter to the makeLoader returned function and passing it through to the callbacks works correctly.

Let me know if this change looks good!

@changeset-bot
Copy link

changeset-bot bot commented Jan 14, 2026

🦋 Changeset detected

Latest commit: 0cfe922

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
swc-loader Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant
Copy link

CLAassistant commented Jan 14, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

Looks good. Thank you!

@kdy1 kdy1 merged commit e697872 into swc-project:main Jan 14, 2026
11 checks passed
@Davit-G
Copy link
Contributor Author

Davit-G commented Jan 14, 2026

Thank you so much! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants