-
-
Notifications
You must be signed in to change notification settings - Fork 385
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
perf: add experimental support for importModule
#737
Conversation
This replaces the child compiler with a lightweight execution of modules within the module graph of the original compilation
Codecov Report
@@ Coverage Diff @@
## master #737 +/- ##
==========================================
- Coverage 89.69% 89.27% -0.42%
==========================================
Files 6 6
Lines 776 802 +26
Branches 240 247 +7
==========================================
+ Hits 696 716 +20
- Misses 77 83 +6
Partials 3 3
Continue to review full report at Codecov.
|
@vyobukhov https://github.com/vyobukhov/mini-css-memory-issues builds within |
use old publicPath logic add CI tests for experimentalUseImportModule disable auxiliaryAssets test with experimentalUseImportModule
ebf324d
to
a974120
Compare
src/loader.js
Outdated
); | ||
return; | ||
} | ||
console.log(publicPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need avoid it 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need remove console.log
and I think we can merge and release it
🚀 |
I will do release tomorrow 🚀 |
This replaces the child compiler with a
lightweight execution of modules within
the module graph of the original compilation
To try the new approach.
experimentalUseImportModule: true
inMiniCssPlugin
optionspublicPath
inMiniCssPlugin
options, that doesn't work yetoutput.publicPath
in webpack optionsThis PR contains a:
Motivation / Use-Case
child compiler take up too much memory and performance
Breaking Changes
none
Additional Info
Not all tests are passing yet with the new approach.
There is nothing to do in mini-css-extract-plugin to fix this.
Currently I think that are all webpack problems that I will fix eventually.
Biggest problem currently is that it breaks with HMR.