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

[fix] Remove webpack-sources from externals #105

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

yoannmoinet
Copy link
Member

@yoannmoinet yoannmoinet commented Oct 23, 2024

This made our bundle require webpack-sources ALL THE TIME.

What and why?

Adding webpack-sources as an external in rollup's config, makes it require the lib from the top.

image

How?

Remove the dependency from there, webpack-sources is an exception, because it's only loaded dynamically from unplugin's custom webpack/rspack loaders.

This made our bundle require webpack-sources ALL THE TIME.
@yoannmoinet yoannmoinet changed the title Remove webpack-sources from externals [fix] Remove webpack-sources from externals Oct 23, 2024
@yoannmoinet yoannmoinet merged commit 9d62bfe into master Oct 23, 2024
5 checks passed
@yoannmoinet yoannmoinet deleted the yoann/fix-webpack-sources-require branch October 23, 2024 13:40
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