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

Individual packaging, dynamic config per compile step #1484

Open
tom2strobl opened this issue May 30, 2023 · 0 comments
Open

Individual packaging, dynamic config per compile step #1484

tom2strobl opened this issue May 30, 2023 · 0 comments

Comments

@tom2strobl
Copy link

Description

When packaging individually, the same webpack.config.js is applied to all slsw.lib.entries, when trying to leverage CopyWebpackPlugin, or in my case @sentry/webpack and I have 40 functions, then it uploads (40*40) 1600 sourcemaps to sentry.

In #333 (comment) there was a discussion that there's no way around it, but it's been 5 years and in the meantime I'm curious if somebody found a way?

Afaik webpacks MultiCompiler always compiles sequentially and not in parallel. Since we have a static map of entries (slsw.lib.entries) we know how many compile jobs there are.

There's the before:webpack:compile hook I guess, but I'm not sure if one can change the webpackConfig path dynamically mid-flight?

Is there something I missed?

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

No branches or pull requests

1 participant