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

add asset modules concatenation #15515

Merged
merged 5 commits into from Apr 4, 2022
Merged

add asset modules concatenation #15515

merged 5 commits into from Apr 4, 2022

Conversation

vankop
Copy link
Member

@vankop vankop commented Mar 11, 2022

What kind of change does this PR introduce?
feature
closes #13764

Did you add tests for your changes?
yes

Does this PR introduce a breaking change?
no

What needs to be documented once your changes are merged?
nothing

@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

test/statsCases/asset/webpack.config.js Outdated Show resolved Hide resolved
@webpack-bot
Copy link
Contributor

@vankop Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@sokra Please review the new changes.

@vankop vankop force-pushed the feat/concatenate-assets branch 2 times, most recently from 1f6d4a1 to 1c0f5c7 Compare March 16, 2022 06:14
Copy link
Member

@sokra sokra left a comment

Choose a reason for hiding this comment

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

NormalModule.codeGeneration still runs code generation for all source types, but it only has to run it for source types that remain in the chunk...

I'm also a bit worries about performance drawbacks that comes with these many accesses to sourceTypesByModule, but let's finish that up and measure afterwards...

lib/ChunkGraph.js Show resolved Hide resolved
lib/ChunkGraph.js Outdated Show resolved Hide resolved
lib/ChunkGraph.js Show resolved Hide resolved
lib/optimize/ModuleConcatenationPlugin.js Outdated Show resolved Hide resolved
- in ConcatenatedModule generate only js
- in NormalModule generate only used sources
@sokra sokra deleted the feat/concatenate-assets branch April 4, 2022 14:04
@sokra
Copy link
Member

sokra commented Apr 4, 2022

Thanks

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

Successfully merging this pull request may close these issues.

asset modules concatenation
3 participants