Tobias Koppers
f7c2f8e470
Update code style to arrow functions
2017-11-08 11:56:01 +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
82f42e2c67
Merge branch 'master' into next
2017-10-17 12:38:38 +02:00
Tobias Koppers
b597322e3c
fix behavior and add a warning when trying to load an
...
initial chunk on demand
2017-10-17 09:06:05 +02: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
11e28793fa
improve performance by doing a breath-first traversal in the chunk graph
...
This is faster because shorter paths usually have less modules available.
This allows to reach minimal modules faster
2017-10-12 20:03:36 +02:00
Tobias Koppers
5abd69680d
Merge branch 'master' into next
...
# Conflicts:
# lib/Compilation.js
# test/statsCases/optimize-chunks/expected.txt
2017-10-11 19:26:00 +02:00
Tobias Koppers
7ebf9314d6
Merge pull request #5786 from webpack/performance/chunks
...
improve chunk graph building performance
2017-10-11 17:05:20 +02:00
Tobias Koppers
2919a9cd53
prevent crashing when error out early in bail mode
...
fixes #5787
2017-10-11 15:28:18 +02:00
Tobias Koppers
7870bfc01d
improve chunk graph building performance
...
document algorithm
2017-10-11 15:08:00 +02:00
Tobias Koppers
03b0ff2c9c
Merge branch 'master' into next
2017-10-11 12:42:31 +02:00
Tobias Koppers
91df794788
bugfix and test for graph correctness
2017-10-11 11:13:36 +02:00
Tobias Koppers
130ace8ba7
fix graph correctness with multiple entries
2017-10-11 10:01:00 +02:00
Tobias Koppers
07992cf588
fix sorting issue
2017-09-22 17:23:49 +02:00
Tobias Koppers
7ceac63f07
add support for pure modules
2017-09-14 09:44:42 +02:00
Tobias Koppers
e5f4eb147a
Merge branch 'master' into refactor/cleanups
2017-08-12 10:03:51 +02:00
Tobias Koppers
839915ccf7
Merge pull request #5501 from webpack/bugfix/hash-watch-warnings-errors
...
Warnings and Errors contribute to hash
2017-08-11 17:46:49 +02:00
Tobias Koppers
38201575ea
fix lint problem
2017-08-11 16:58:18 +02:00
Tobias Koppers
09c34cf280
remove hash from stats test with error
...
because error contains an absolute path
2017-08-11 16:28:40 +02:00
Tobias Koppers
f9bf8a9085
Limit the number of parallel processed modules
...
fixes #3164
fixes #3166
2017-08-11 16:11:17 +02:00
Tobias Koppers
7905bf57f0
Warnings and Errors contribute to hash
2017-08-11 14:35:08 +02:00
Adam Thomann
70f5698145
Add semicolon
2017-08-11 00:05:25 -04:00
Adam Thomann
12f20935bc
Convert errorAndCallback ternary to arrow function
2017-08-10 23:58:49 -04:00
Tobias Koppers
4c81b9a017
move weak into getReference
2017-08-08 09:43:33 +02:00
Tobias Koppers
c1a02446ac
store hash in depndencyTemplates Map instead of comparing identify
...
This restores original performance on incremental builds
fixes #5289
fixes #5277
2017-07-14 13:03:30 +02:00
Tim Sebastian
5b4836d185
remove "lastId" as there is no usecase
2017-06-21 22:22:00 +10:00
Tobias Koppers
5d4ba56c5f
Allow scope hoisting to process modules in multiple chunks
2017-06-14 22:46:26 +02:00
Tobias Koppers
cc705ec609
avoid creating recursive chunk references
...
parent-child-dependencies are more optimized
2017-06-09 16:06:52 +02:00
Tobias Koppers
4a25a17bb6
improvements from review
2017-05-21 09:15:42 +02:00
Tobias Koppers
9b2a9fa786
Scope Hoisting
2017-05-21 09:15:41 +02:00
Tobias Koppers
2bd2d2844c
improve a few issues
...
from review by @Kovensky
2017-05-20 14:54:42 +02:00
Tobias Koppers
8d3efe7d63
Merge branch 'next' into perf/modules-set
2017-05-16 14:37:03 +02:00
Tobias Koppers
101850c5a9
assign correct records and cache to child compilations
...
This is a breaking change because plugins or loader could rely on this incorrect behavior
When using child compilations plugins and loaders should use a unique compiler name or use a consistent order
fixes #2777
2017-05-04 13:05:03 +02:00
J Huang
94d0641ba4
perf: use Date.now() instead of +new Date()
...
+new Date() is 2x slower than Date.now(), see https://jsperf.com/new-date-vs-date-now-vs-performance-now/6
2017-05-04 10:19:10 +08:00
Tobias Koppers
aac0389ba8
Sort by debug id and id
2017-04-19 08:26:59 +02:00
Tobias Koppers
e8bc9c2b3b
use a Set for Module.chunks
2017-04-18 23:27:25 +02:00
Tim Sebastian
b863851ce9
add getStats again - remove breaking change
2017-04-06 21:52:06 +10:00
Tim Sebastian
8165164d3e
explicitly call `new Stats` with compilation
...
instead of having compilation.getStats returning a new instance of `Stats(this)`
2017-04-06 21:40:58 +10:00
SendilKumar N
26456f96d4
Changing async to asyncLib
2017-04-05 21:05:00 +08:00
Jeff Escalante
5fab3cbe9c
two small changes
...
- addEntry callback passes module
- debugId test starts from 1000
2017-03-30 18:10:41 -04:00
Ali BARIN
a941499889
Update variable declarations according to ES6
2017-03-02 15:09:09 +01:00
Ryan Berdeen
6bd9c8a757
pass chunk to updateHashForChunk
2017-02-24 15:24:18 -05:00
Tobias Koppers
fbf84d51f2
allow to apply plugins to child compiler
...
allow to match on compiler name in rules
#4177
2017-02-22 11:49:49 +01:00
Tim Sebastian
840efada4f
inline cacheAssetsAndApplyPlugins helper as it heavily relies on "this" anyways
2017-02-05 13:28:15 +11:00
Tim Sebastian
36cea5944f
further reduce usage of let in Compilation
2017-02-05 12:20:22 +11:00
Tim Sebastian
0bc09a8033
use const where applicable in Compilation
2017-02-05 10:13:17 +11:00
Tom910
665fbd0ca8
Fix todo comments
2017-01-25 22:47:11 +03:00
Tom910
74efa93d5f
More refactoring Compilation.js and RemoveParentModulesPlugin.js
2017-01-25 22:39:24 +03:00
Tom910
588976d5e9
Deleting cache length size to loop
2017-01-24 22:39:38 +03:00
Tom910
b27f73710d
Revert indents to Compilation
2017-01-23 22:31:53 +03:00