Tobias Koppers
d6816afddf
Merge pull request #6355 from webpack/for_of_loops
...
Use for-of loops instead of forEach
2018-01-24 10:35:58 +01:00
Tobias Koppers
7a1b357aad
Merge branch 'next' into for_of_loops
2018-01-24 09:01:31 +01:00
Tobias Koppers
b7063092b1
Readd removed util module
...
merge issue
2018-01-24 08:47:43 +01:00
Tobias Koppers
ad75e44d02
Merge branch 'next' into remove_v3_deprecated
2018-01-24 08:45:13 +01:00
Tobias Koppers
7de03f2984
Merge pull request #6367 from webpack/deprecate_forEach_map
...
Deprecate forEach* and map* methods
2018-01-24 08:39:59 +01:00
Florent Cailhol
7b8fa112e0
Remove v3 deprecated APIs
2018-01-23 23:25:01 +01:00
Florent Cailhol
d4811b0d37
Use for-of loops instead of forEach
2018-01-23 22:53:18 +01:00
Florent Cailhol
77bb4c0055
Deprecate forEach* and map* methods
2018-01-23 22:19:59 +01:00
Michael Ciniawsky
390fac43b4
fix(lib/Chunk): typo in `getNumberOfGroups` return value
2018-01-23 08:54:19 +01:00
Tobias Koppers
ea609374f7
split Chunk.isInitial into isOnlyInitial and canBeInitial
...
remove includeInitial argument of getChunk(Module)Maps
2018-01-22 12:52:28 +01:00
Tobias Koppers
0206949075
remove unused code
2018-01-21 11:12:36 +01:00
Tobias Koppers
5161d96650
fix bug when comparing name lengths
2018-01-21 11:10:51 +01:00
Tobias Koppers
fabd1abb41
improvements from review by @ooflorent
2018-01-20 11:28:45 +01: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
7112943ca4
Merge pull request #6298 from EugeneHlushko/refactor/indexof-to-includes
...
Refactor/indexof to includes
2018-01-11 22:45:02 +01:00
EugeneHlushko
2aab060f26
Refactor: indexOf >< checks to includes
2018-01-11 18:58:39 +02:00
Tobias Koppers
c71dabcc0c
allow to set runtime chunk in Entrypoint
...
split keeps runtime chunk in entrypoint
default runtime chunk back to first chunk to keep CCP working
2018-01-10 18:58:28 +01:00
Tobias Koppers
b34663cb2d
add more config options
...
fix bugs
2018-01-10 18:58:27 +01:00
Tobias Koppers
08cd2f0ffe
introduce ChunkGroup for AND in parents
2018-01-10 17:12:03 +01:00
Tobias Koppers
ca1c91c576
Merge branch 'master' into next
...
# Conflicts:
# lib/Chunk.js
# lib/MainTemplate.js
# test/statsCases/commons-chunk-min-size-0/expected.txt
# test/statsCases/commons-plugin-issue-4980/expected.txt
# test/statsCases/named-chunks-plugin/expected.txt
2018-01-04 21:47:33 +01:00
nename0
d1e0bec48e
Fix: the require-ensure only includes non-initial chunks
2018-01-04 19:25:03 +01:00
Jeonghwan Lee
6dd4de57dc
Fix Chunk.prototype.entrypoints setter
2017-12-15 11:26:38 +09:00
Tobias Koppers
beccf941a9
convert algorithm to iterative, use less memory
2017-12-01 11:26:53 +01:00
Tobias Koppers
8363773f3f
only emit wasm runtime code for bundles containing wasm
2017-11-21 12:57:40 +01:00
Tobias Koppers
65e855c636
fix deprecations
2017-11-11 11:27:02 +01:00
Tobias Koppers
41a1d602e1
added WebAssembly Proof of Concept
2017-11-10 09:17:11 +01:00
Tobias Koppers
860da9baaa
Merge branch 'next' into refactor/sets
2017-11-08 21:28:51 +01:00
Tobias Koppers
f7c2f8e470
Update code style to arrow functions
2017-11-08 11:56:01 +01:00
Tobias Koppers
447d85ad79
Merge branch 'next' into refactor/sets
...
# Conflicts:
# lib/ContextModule.js
# lib/NormalModule.js
# lib/optimize/ConcatenatedModule.js
2017-11-08 06:01:24 +01:00
Tobias Koppers
51c572c4f5
refactor more properties to Sets
2017-11-07 09:17:12 +01:00
Tobias Koppers
52bacce0d7
Merge branch 'next' into refactor/cleanup-stuff
2017-11-07 09:15:15 +01:00
Tobias Koppers
0339d4da49
Refactor weird things
...
* Declare used properties in constructor
* Module.(re)building moved into Compilation._(re)buildingModules (Map)
* Make NormalModule.error private
* Move Module.cacheable logic into needRebuild
* More stable implemention of rebuildModule
* addModuleChain waits for Module building finished before returning
* Set built and cacheable flags correctly in Modules
* More portableId into WeakMap
* Add ModuleReason for entrypoints
* cacheable can be true/false/null in Stats
* added Stats module issuerPath
* fixes profile in stats output
2017-11-06 13:16:09 +01:00
Tobias Koppers
1b28c93eaf
renamed methods
2017-11-06 12:15:23 +01:00
Tobias Koppers
bbb66fcca0
bugfix
2017-11-06 11:26:16 +01:00
Tobias Koppers
801138a3b3
allow caching in sortable set and use it
2017-11-03 10:17:08 +01:00
Tobias Koppers
814c894168
Merge branch 'master' into next
...
# Conflicts:
# lib/optimize/CommonsChunkPlugin.js
# test/statsCases/limit-chunk-count-plugin/expected.txt
# test/statsCases/named-chunks-plugin-async/expected.txt
# test/statsCases/optimize-chunks/expected.txt
2017-10-16 10:47:17 +02:00
Tobias Koppers
45756a2291
set chunk reasons symmetrical
2017-10-13 10:44:08 +02:00
Tobias Koppers
07992cf588
fix sorting issue
2017-09-22 17:23:49 +02:00
Tobias Koppers
b316bee0a6
Use SortableSets for Chunk.parents/blocks
2017-09-22 16:38:47 +02:00
Tobias Koppers
53711d5a76
make deprecations more yelling
2017-09-22 14:13:09 +02:00
Tobias Koppers
6bd937d768
make things consitent
2017-09-22 14:07:28 +02:00
Tobias Koppers
6c1831ca21
Merge branch 'next' into use-set-in-chunks
2017-09-22 13:49:03 +02:00
Tobias Koppers
7387c50c3a
change jsonp function to jsonp array push
2017-09-14 08:49:14 +02:00
Tobias Koppers
f6a0d51e6b
Merge branch 'master' into use-set-in-chunks
2017-07-18 09:32:53 +02:00
Steven Hargrove
5f08aa44bd
removed default params for node 4
2017-07-06 16:40:58 -04:00
Steven Hargrove
cadf9f715f
added sortModules method to Chunk class
2017-07-06 16:08:58 -04:00
Tim Sebastian
4c18dbf0d6
make chunk._chunks a sortable set
2017-06-24 11:40:24 +10:00
Tim Sebastian
7e0a6ca287
fix contrains checks, might get obsolete in the future
2017-06-24 11:39:46 +10:00
Tim Sebastian
53f70c7aeb
deprecate chunk.chunks
2017-06-24 11:38:00 +10:00
Tim Sebastian
81e5b7ce4f
refactor usage of this.chunk inside Chunk to use Set API
2017-06-24 11:38:00 +10:00