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
[v2.0.0] Remove experimentalOptimizeChunks #3343
[v2.0.0] Remove experimentalOptimizeChunks #3343
Conversation
Codecov Report
@@ Coverage Diff @@
## release-2.0.0 #3343 +/- ##
=================================================
+ Coverage 94.23% 95.00% +0.76%
=================================================
Files 173 172 -1
Lines 5949 5802 -147
Branches 1756 1712 -44
=================================================
- Hits 5606 5512 -94
+ Misses 190 157 -33
+ Partials 153 133 -20 Continue to review full report at Codecov.
|
i am for letting it stay and do your reimplamentation in a extra branch while keeping the original implamentation some do relay on it.you can do a none experimentalOtimizeChunks |
I can let it stay, but really, we cannot give any support for this. |
@lukastaegert i totally agree with your idea of manual chunks that only should get better documented i am for a deprecation msg added to expermentalOptimized as also a link to a valid replacement example in the documentation using manualChunks |
2237c47
to
1952d2f
Compare
86f41ee
to
f4b9761
Compare
db44224
to
f13c3b2
Compare
* Update CI to only run on Node 10 and 12, add engines to package.json * Update TypeScript target * Remove Bublé as a transpilation option from tests (it is still needed in sourcemap tests) * Remove minNodeVersion form tests * Reformat package.json
* Create a separate chunk for watch mode via a dynamic import * Bundle chokidar * Handle conditional fsevents import * Only run tests on Node 10 and 12 as we want to do this anyway and chokidar depends on utils.promisify * Improve chunking * Refactor and simplify watcher * Make watcher a proper parameter * Only unwatch and watch on Linux systems * No longer run JS files through TypeScript for improved bundling performance
* Remove active deprecations * Make inactive deprecations active * Improve coverage * Improve coverage * Refine transformer * Improve coverage * Refactoring option normalization * Improve coverage
771189e
to
cfdc86b
Compare
f13c3b2
to
a969a6e
Compare
Id say drop this, there is a lot of work being done to optimize chunking already. |
d19c51a
to
467d666
Compare
I will remove the feature from the 2.0.0 branch for the time being. Effectively what this feature does is creating small manual chunks for very small shared modules, albeit in a fashion that avoids too much unnecessary code being loaded. It can be replicated via manual chunks, albeit with a little work. Once 2.0.0 is settled and the necessary refactorings are done, we can look if we want to reintroduce something like this. |
f950ad5
to
a5c193d
Compare
Thank you for your contribution! ❤️You can try out this pull request locally via
or load it into the REPL: |
* [v2.0.0] Update minimum required Node version to 10 (#3346) * Update CI to only run on Node 10 and 12, add engines to package.json * Update TypeScript target * Remove Bublé as a transpilation option from tests (it is still needed in sourcemap tests) * Remove minNodeVersion form tests * Reformat package.json * [v2.0.0] Bundle chokidar (#3331) * Create a separate chunk for watch mode via a dynamic import * Bundle chokidar * Handle conditional fsevents import * Only run tests on Node 10 and 12 as we want to do this anyway and chokidar depends on utils.promisify * Improve chunking * Refactor and simplify watcher * Make watcher a proper parameter * Only unwatch and watch on Linux systems * No longer run JS files through TypeScript for improved bundling performance * [v2.0.0] Remove active deprecations (#3352) * Remove active deprecations * Make inactive deprecations active * Improve coverage * Improve coverage * Refine transformer * Improve coverage * Refactoring option normalization * Improve coverage * Remove experimentalOptimizeChunks * Remove more unused code
* [v2.0.0] Update minimum required Node version to 10 (#3346) * Update CI to only run on Node 10 and 12, add engines to package.json * Update TypeScript target * Remove Bublé as a transpilation option from tests (it is still needed in sourcemap tests) * Remove minNodeVersion form tests * Reformat package.json * [v2.0.0] Bundle chokidar (#3331) * Create a separate chunk for watch mode via a dynamic import * Bundle chokidar * Handle conditional fsevents import * Only run tests on Node 10 and 12 as we want to do this anyway and chokidar depends on utils.promisify * Improve chunking * Refactor and simplify watcher * Make watcher a proper parameter * Only unwatch and watch on Linux systems * No longer run JS files through TypeScript for improved bundling performance * [v2.0.0] Remove active deprecations (#3352) * Remove active deprecations * Make inactive deprecations active * Improve coverage * Improve coverage * Refine transformer * Improve coverage * Refactoring option normalization * Improve coverage * Remove experimentalOptimizeChunks * Remove more unused code
* [v2.0.0] Update minimum required Node version to 10 (#3346) * Update CI to only run on Node 10 and 12, add engines to package.json * Update TypeScript target * Remove Bublé as a transpilation option from tests (it is still needed in sourcemap tests) * Remove minNodeVersion form tests * Reformat package.json * [v2.0.0] Bundle chokidar (#3331) * Create a separate chunk for watch mode via a dynamic import * Bundle chokidar * Handle conditional fsevents import * Only run tests on Node 10 and 12 as we want to do this anyway and chokidar depends on utils.promisify * Improve chunking * Refactor and simplify watcher * Make watcher a proper parameter * Only unwatch and watch on Linux systems * No longer run JS files through TypeScript for improved bundling performance * [v2.0.0] Remove active deprecations (#3352) * Remove active deprecations * Make inactive deprecations active * Improve coverage * Improve coverage * Refine transformer * Improve coverage * Refactoring option normalization * Improve coverage * Remove experimentalOptimizeChunks * Remove more unused code
* [v2.0.0] Update minimum required Node version to 10 (#3346) * Update CI to only run on Node 10 and 12, add engines to package.json * Update TypeScript target * Remove Bublé as a transpilation option from tests (it is still needed in sourcemap tests) * Remove minNodeVersion form tests * Reformat package.json * [v2.0.0] Bundle chokidar (#3331) * Create a separate chunk for watch mode via a dynamic import * Bundle chokidar * Handle conditional fsevents import * Only run tests on Node 10 and 12 as we want to do this anyway and chokidar depends on utils.promisify * Improve chunking * Refactor and simplify watcher * Make watcher a proper parameter * Only unwatch and watch on Linux systems * No longer run JS files through TypeScript for improved bundling performance * [v2.0.0] Remove active deprecations (#3352) * Remove active deprecations * Make inactive deprecations active * Improve coverage * Improve coverage * Refine transformer * Improve coverage * Refactoring option normalization * Improve coverage * Remove experimentalOptimizeChunks * Remove more unused code
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Closes #3340
Description
experimentalOptimizeChunks
has for a long time been a badly tested, unmaintained huge chunk of code that added a lot of complexity. Now that actual issues started popping up for this feature, I would like to remove it for v2.0.0. If we want to reintroduce it later, I would write a completely new version based on moving the chunking to generateBundle first and not merging chunks after they have been created.