Commit Graph

7386 Commits

Author SHA1 Message Date
Tobias Koppers 6ca7ae1c48 make Compilation.modules a Set 2018-09-06 17:03:24 +02:00
Tobias Koppers 4a959b8b83 improve SetHelpers typings 2018-09-06 17:02:20 +02:00
Tobias Koppers f47febd045 add deprecation helpers 2018-09-06 17:02:19 +02:00
Tobias Koppers 9da6003362 Make usedIds in records an array
Make emitted JSON for records stable
2018-09-06 16:05:29 +02:00
Tobias Koppers 0eafdffd0e Stabilize stats item order 2018-09-06 16:05:26 +02:00
Tobias Koppers 856f5cc5fd
Merge pull request #7995 from webpack/refactor/chunk-id-plugins
refactor chunk id plugins
2018-09-06 14:31:09 +02:00
Tobias Koppers 149043a134 Make create chunk and module ids filename safe 2018-09-05 21:29:22 +02:00
Tobias Koppers b4860ccebb refactor chunk id plugins 2018-09-05 14:28:52 +02:00
Tobias Koppers 24212cee59
Merge pull request #7986 from webpack/refactor/correct-index-name
rename index/index2 to pre/postOrderIndex
2018-09-04 22:19:11 +02:00
Tobias Koppers 4a7a85ca84 rename index/index2 to pre/postOrderIndex 2018-09-04 09:27:25 +02:00
Tobias Koppers 3b6b272d4b
Merge pull request #7765 from webpack/refactor/natural_ids
Avoid sorting modules, make module ids plugins independent
2018-09-04 09:18:14 +02:00
Tobias Koppers 24185b5ee2 filter modules before sorting for performance reasons 2018-09-04 08:52:22 +02:00
Tobias Koppers 4d7b5b3b5e Refactor module id plugins to be independent 2018-09-03 20:45:44 +02:00
Tobias Koppers e979f1534e use optimization.moduleIds instead of plugins directly 2018-09-03 20:12:55 +02:00
Tobias Koppers bd18e019d4 Clone module attributes instead of moving them 2018-09-03 20:12:55 +02:00
Florent Cailhol 8fda6a562e Add NaturalModuleIdsPlugin 2018-09-03 20:12:55 +02:00
Tobias Koppers 888ad3d684 insert concatenated module at correct position
fixes bug where ids are incorrectly assigned
2018-09-03 20:12:55 +02:00
Tobias Koppers 51a13926ad Merge tag 'v4.17.2' into next
4.17.2
2018-09-03 20:06:19 +02:00
Tobias Koppers dfe6379052 4.17.2 2018-09-03 19:25:27 +02:00
Tobias Koppers 8c8719bd4a
Merge pull request #7954 from webpack/feature/split-chunk-type
add moduleType option to cacheGroup to select by module type
2018-09-03 19:13:26 +02:00
Tobias Koppers 801dacc1fe
Merge pull request #7955 from webpack/remove/split-chunks-entry-point
emit error when splitChunks.name and entrypoint match
2018-09-03 18:51:49 +02:00
Tobias Koppers 41e59235df emit error when splitChunks.name points to existing chunk name 2018-09-03 10:37:43 +02:00
Tobias Koppers b87e93221b add type option to cacheGroup to select by module type 2018-09-03 10:36:24 +02:00
Tobias Koppers 80bc330161
Merge pull request #7961 from aimergenge/patch-1
solving outputing unnecessary spaces
2018-09-02 15:05:27 +02:00
Tobias Koppers 3dedc72f61
Merge pull request #7969 from webpack/deps/upgrade
Upgrade some dependencies
2018-08-30 07:15:30 +02:00
Tobias Koppers cd9525ad4c Upgrade some dependencies 2018-08-29 20:06:15 +02:00
Tobias Koppers 7e47ed7a42
Merge pull request #7963 from webpack/refactor/module-id
Refactor to finally get rid of disconnect
2018-08-28 17:49:32 +02:00
Tobias Koppers 604460da52 move iterable compare code to comparators 2018-08-28 15:10:30 +02:00
Tobias Koppers b669bec324 add caching to higher-order comparators 2018-08-28 15:09:09 +02:00
Tobias Koppers bad9d8a271 move Module.id into ChunkGraph
remove disconnect and unseal from Module
2018-08-28 15:08:52 +02:00
Tobias Koppers 02b15a1b46 pass chunkGraph to updateHash instead of moduleGraph
pass chunkGraph to compareModulesById instead of moduleGraph
pass chunkGraph to methods of RuntimeTemplate
use comparators from module at some places
2018-08-28 12:06:53 +02:00
aimergenge 7996883cab
solving outputing unnecessary spaces
`…` is causing terminals like git bash on windows to output unnecessary spaces
2018-08-28 16:09:21 +08:00
Tobias Koppers 76c319338e
Merge pull request #7952 from webpack/tooling/prettier
improve prettier and lint config and performance
2018-08-24 17:24:09 +02:00
Tobias Koppers 1b886ee342 improve prettier and lint config and performance 2018-08-24 16:57:16 +02:00
Tobias Koppers ef27840f94
Merge pull request #7951 from webpack/refactor/update-hash-chunk-graph
Use ChunkGraph instead of Compilation in updateHash
2018-08-24 14:30:05 +02:00
Tobias Koppers 239ce7fcd9 Use ChunkGraph instead of Compilation in updateHash 2018-08-24 12:02:42 +02:00
Tobias Koppers 6e01fd5099
Merge pull request #7942 from webpack/test/performance
improve jest startup performance and lint all staged files
2018-08-24 11:24:23 +02:00
Tobias Koppers d4abcc476f
Merge pull request #7943 from webpack/refactor/should-render
use JavascriptModulesPluginHooks.shouldRender correctly
2018-08-24 11:21:04 +02:00
Tobias Koppers 402cf189ce use JavascriptModulesPluginHooks.shouldRender correctly 2018-08-23 16:54:41 +02:00
Tobias Koppers 2740d4a9af improve jest startup performance
lint-staged all files
2018-08-23 16:00:17 +02:00
Tobias Koppers 98964592ad
Merge pull request #7934 from webpack/refactor/module-graph
Refactor/module graph
2018-08-23 08:30:45 +02:00
Tobias Koppers 670502fc81 Move AsyncDependenciesBlock.chunkGroup into ChunkGraph 2018-08-22 20:17:49 +02:00
Tobias Koppers 3aa2280498 move Module.hash and .renderedHash into ChunkGraph 2018-08-22 19:24:54 +02:00
Tobias Koppers 190a8af6d4
Merge pull request #7933 from webpack/refactor/module-graph
Refactor/module graph
2018-08-22 19:22:59 +02:00
Tobias Koppers eb63cf80d6 move built flag into Compilation 2018-08-22 15:33:16 +02:00
Tobias Koppers e0f84652c0 remove Module.prefetched
remove prefeteched from Stats
make Compilation.addModuleChain public and remove onModule argument
remove Compilation.prefetch
2018-08-22 15:19:05 +02:00
Tobias Koppers b20556c1ff move profile to ModuleGraph 2018-08-22 14:54:28 +02:00
Tobias Koppers 4135c6e683 remove some unnecessary moduleGraph arguments and property accesses 2018-08-22 12:45:14 +02:00
Tobias Koppers 26022c86a0 move Module.depth into ModuleGraph
nested modules no longer have depth and stay unsorted in stats
2018-08-22 12:45:11 +02:00
Tobias Koppers fe54d717a2 refactor sorting in Stats 2018-08-22 12:45:08 +02:00