Commit Graph

23 Commits

Author SHA1 Message Date
Tobias Koppers 8281667668 improve ids for Long Term Caching
add deterministic chunk ids and make it default
StatsTestCases no longer need to explicitly use natural ids as the defaults are deterministic now too
add concept of id name hints for chunks
add `idHint` option to splitChunks to provide a hint
deduplicated code from different id plugins to IdHelpers
improve behavior of named ids in case of conflicts
remove `name: true` and `automaticNamePrefix` from splitChunks it's not as good as expected
improve named chunk ids to show root modules
2018-12-07 12:26:35 +01:00
Tobias Koppers f63c9b8e43 Use natural ids in most stats cases to make them more stable 2018-07-27 12:28:02 +02:00
Tobias Koppers 2d279fcfbe Use jest snapshot testing 2018-05-01 16:09:50 +02:00
Tobias Koppers 27d76683a3 align stats string output to max length 2018-04-04 14:40:34 +02:00
Leon Weidauer 09f959c684 Fix Stats and BinTestCases after adding "Built at"
In order to pass the tests, a similar
test replacement as with the millisecond values
needs to happen.

For the "Built at" stat all dates are replaces with
Thu Jan 01 1970 00:00:00 GMT.

Related to issue #5305
2018-01-29 14:59:13 -08:00
Tobias Koppers 18ae73dad4 Refactor chunk graph
Chunks are now always in ChunkGroups
ChunkGroups have parents and children, Chunks no longer have this
AsyncDependenciesBlocks point to a ChunkGroup instead of a list of chunks
Entrypoint is now a ChunkGroup (extends from it)
move stuff graph modification methods into GraphHelpers
Change chunk id recording to source-based
Chunks have parents, siblings and children in Stats
rename AutomaticCommonsChunksPlugin to SplitChunksPlugin
add request property to origin (ChunkGroup)
remove moveToParent from AggressiveMergingPlugin
fix issues with AggressiveSplittingPlugin
remove CommonsChunkPlugin
add optimization.runtimeChunk (RuntimeChunkPlugin)
fix a filename bug for initial chunks
remove extract-text-webpack-plugin from test suite
add DebugHash to help debugging hash issues
fix issues with entry modules in different chunk as runtime
redo optimization.splitChunks options
Compilation.entrypoints is now a Map
Compilation.chunkGroups has been added
remove some unittests
update examples
update tests with CommonsChunkPlugin
2018-01-19 19:21:30 +01:00
Tobias Koppers 2a1546d355 fix reversed order in OccurenceOrderPlugin
try to keep original order
fallback order by name if index order fails
2017-12-20 20:35:16 +01:00
Tobias Koppers 2201b860a5 Add mode option and choose defaults depending on mode
add optimization options
use development mode for watch/hot/config tests
use production mode for integration/stats tests
create output directory if not existing
move __esModule to runtime
fix dependency behavior for cases without usedExports
2017-11-24 08:17:17 +01:00
Tobias Koppers ae2919d28a update stats cases for smaller bundles 2017-11-21 12:59:14 +01:00
Tobias Koppers dbc02deed7 Merge branch 'next' into 5769_file_size_in_kibibytes
# Conflicts:
#	test/statsCases/aggressive-splitting-entry/expected.txt
#	test/statsCases/aggressive-splitting-on-demand/expected.txt
#	test/statsCases/chunks/expected.txt
#	test/statsCases/color-disabled/expected.txt
#	test/statsCases/color-enabled-custom/expected.txt
#	test/statsCases/color-enabled/expected.txt
#	test/statsCases/commons-chunk-min-size-0/expected.txt
#	test/statsCases/commons-chunk-min-size-Infinity/expected.txt
#	test/statsCases/commons-plugin-issue-4980/expected.txt
#	test/statsCases/define-plugin/expected.txt
#	test/statsCases/exclude-with-loader/expected.txt
#	test/statsCases/external/expected.txt
#	test/statsCases/filter-warnings/expected.txt
#	test/statsCases/import-weak/expected.txt
#	test/statsCases/limit-chunk-count-plugin/expected.txt
#	test/statsCases/max-modules-default/expected.txt
#	test/statsCases/max-modules/expected.txt
#	test/statsCases/module-trace-disabled-in-error/expected.txt
#	test/statsCases/module-trace-enabled-in-error/expected.txt
#	test/statsCases/named-chunks-plugin-async/expected.txt
#	test/statsCases/named-chunks-plugin/expected.txt
#	test/statsCases/optimize-chunks/expected.txt
#	test/statsCases/performance-disabled/expected.txt
#	test/statsCases/performance-error/expected.txt
#	test/statsCases/performance-no-async-chunks-shown/expected.txt
#	test/statsCases/performance-no-hints/expected.txt
#	test/statsCases/preset-detailed/expected.txt
#	test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/expected.txt
#	test/statsCases/preset-normal-performance/expected.txt
#	test/statsCases/preset-normal/expected.txt
#	test/statsCases/preset-verbose/expected.txt
#	test/statsCases/resolve-plugin-context/expected.txt
#	test/statsCases/reverse-sort-modules/expected.txt
#	test/statsCases/separate-css-bundle/expected.txt
#	test/statsCases/simple-more-info/expected.txt
#	test/statsCases/simple/expected.txt
#	test/statsCases/tree-shaking/expected.txt
#	test/statsCases/warnings-uglifyjs/expected.txt
2017-11-20 13:19:57 +01:00
Tobias Koppers c34d627fb7 update stats for changed sizes 2017-11-10 11:55:01 +01:00
Robo Burned 4cc3832926 Update tests to match file size in kibibytes. 2017-10-09 14:20:53 +04:00
Tobias Koppers 890a507b08 optimize OccurenceOrderPlugin 2017-06-02 01:24:55 +02:00
Tobias Koppers 0f16dd95b1 fixes incorrect CLI stats output
add "detailed" preset
clean up presets to do more useful stuff

fixes #4141
fixes #4118
2017-06-01 15:03:26 +02:00
Tobias Koppers d967a4623c add `module.strictThisContextOnImports` option
to allow spec-comforming behavior this context on
called imported harmony functions
2017-05-21 09:23:35 +02:00
Stefan Schneider 99de6d9ec1 Updated Stats 2017-04-03 08:41:44 +02:00
Tobias Koppers 02e19b5ad4 update snapshots and fix test
PrefixSource now include empty lines which cases bigger runtime size (only comments)
cheap source map excludes mappings for empty files
2017-03-15 14:37:10 +01:00
Sean Larkin 5f29ffc0eb fix(tests): fix line endings which broke master (#3827) 2017-01-06 22:09:13 -06:00
Sean Larkin 5f14559335 feat(performancebudgets): set warnings in console off by default, however should still display in stats (#3604) 2016-12-28 11:27:54 -06:00
Tobias Koppers d08c9b180e flag entrypoint in stats too 2016-12-14 11:50:44 +01:00
Sean Larkin 541ec7ce08 feat(performance): don't include .map files in perf warnings 2016-12-13 10:25:32 -06:00
Sean Larkin e7c2aa624b chore(performance): prevent duplicate error messages from appearing 2016-12-07 17:22:21 +01:00
Sean Larkin 2bd0b844cb chore(performance): add new test for stats testing case for NoAsyncChunks 2016-12-07 17:22:21 +01:00