Tim Sebastian
63f0930161
simplify size calculation
...
add "moduleSize" calculator, add multiply and overhead helper
2017-02-14 21:16:09 +11:00
Tim Sebastian
aaee63a500
make variables more readable
2017-02-14 21:16:09 +11:00
Tim Sebastian
dd5eb39dd3
remove unnecessary passing of "this" argument - done via arrow functions
2017-02-14 21:16:09 +11:00
Tim Sebastian
2f58138516
remove unnecessary iteration if b.chunks is not set
2017-02-14 21:16:09 +11:00
Tim Sebastian
9f27e92d42
use replaceChunk and replaceParent in "integrate" method
2017-02-14 21:16:09 +11:00
Tim Sebastian
848b5aeb92
add two helper methods `replaceChunk` and `replaceParent`
...
they take an old item and a new item, remove the old item and add the new one
2017-02-14 21:16:09 +11:00
Tim Sebastian
5fa6caafd6
use method "moveModule" instead of duplicating it when integrating chunk
2017-02-14 21:16:09 +11:00
Tim Sebastian
fc36ac366d
use easier readable variable name in moveModule
2017-02-14 21:16:08 +11:00
Tim Sebastian
779c753baf
transfer add logic for module, block, parent, chunk to prototype
...
bringing the "adder" logic to the prototype might be slighly better performance wise
reuse of logic for add module and block, though they now have one superfluous check (should be negligable though)
2017-02-14 21:16:08 +11:00
Tim Sebastian
071b504a84
merge iteration of parent and sub chunks
...
merge and document iteration over parent and subchunks in remove method
this will slightly increase performance for removing chunks as it only
iterates once over all chunks and parents'
2017-02-14 21:16:08 +11:00
Tim Sebastian
f7e9d5805f
use easier to read variable names
2017-02-14 21:16:08 +11:00
Tim Sebastian
14894f065f
not needed as arrow functions keep "this"
2017-02-14 21:16:08 +11:00
Tim Sebastian
e0da9a8c44
the point of the arrow function is to not need a context passed in
2017-02-14 21:16:08 +11:00
Tim Sebastian
4ea380ff68
no need to add removeAndDo to the context
...
no one else is using it on chunks and `_` indicates its private anyways
2017-02-14 21:16:08 +11:00
Tobias Koppers
8e69a80847
code linting
2017-01-11 12:29:01 +01:00
Will Mendes
a1ffb615ab
refactor(Chunk): upgrade to ES6 ( #3694 )
...
* refactor(Chunk): upgrade to ES6
* test(Chunk): adding unit test for Chunk class
2017-01-04 10:17:49 -06:00
Tobias Koppers
f4ab7fc7e2
more performance improvements
2016-12-14 16:22:54 +01:00
Tobias Koppers
1296c689ac
bug fix for agressive merging
2016-09-07 12:37:47 +02:00
Tobias Koppers
1675a5a5ca
new way to handle new ids, reuse old ids
...
adjusted HMR to handle id reusing
2016-07-18 00:41:26 +02:00
Tobias Koppers
79eb404257
fixes webpack/extract-text-webpack-plugin#82
...
fixes webpack/extract-text-webpack-plugin#115
fixes webpack/extract-text-webpack-plugin#170
2016-07-15 21:59:24 +02:00
Tobias Koppers
2f618e733a
refactoring and aggressive-splitting plugin
2016-07-13 11:03:14 +02:00
Tobias Koppers
1b459d91f5
move externals into chunk with entry
...
fixes #2314
maybe fixes #2066
fixes #2375
fixes #1673
2016-05-05 10:13:50 +02:00
Tobias Koppers
996b6c80ae
cache parent checks, check faster array for contain
2016-04-10 23:55:37 +02:00
Tobias Koppers
5bbfbae551
Merge branch 'master' into webpack-2
...
Conflicts:
package.json
test/statsCases/chunks/expected.txt
2015-07-25 13:49:14 +02:00
Tobias Koppers
ea7fd67ec1
fixed #1239
2015-07-22 22:34:25 +02:00
Tobias Koppers
431a4c791c
Merge branch 'master' into webpack-2
...
Conflicts:
hot/dev-server.js
hot/only-dev-server.js
hot/poll.js
hot/signal.js
lib/ChunkTemplate.js
lib/HotModuleReplacement.runtime.js
lib/HotModuleReplacementPlugin.js
lib/JsonpMainTemplatePlugin.js
lib/MainTemplate.js
lib/NormalModule.js
lib/Parser.js
lib/RecordIdsPlugin.js
lib/WebpackOptionsApply.js
lib/dependencies/RequireEnsureDependency.js
lib/node/OldNodeWatchFileSystem.js
lib/optimize/OccurrenceOrderPlugin.js
package.json
2015-07-17 09:30:37 +02:00
Tobias Koppers
5cd6e7d0b3
fixed a few linting issues
2015-07-16 00:39:56 +02:00
Tobias Koppers
f7d799adb4
rebeautify without spacing after keyword
2015-07-16 00:19:23 +02:00
Avi Haiat
0a340f2b1a
feat(app): Beautify all lib files
2015-07-13 01:20:09 +03:00
Tobias Koppers
8cfeb51c30
refactoring and bug fixes
2015-07-07 00:11:13 +02:00
Kenny Tran
7e0a98bb29
Refactor size method for Chunks
2015-05-31 20:02:07 -07:00
Kenny Tran
9352bb8806
Fix typo in Chunk.js
2015-05-20 14:57:10 -07:00
Tobias Koppers
cebd3b9722
added linting
2015-04-23 23:55:50 +02:00
Tobias Koppers
18fe8e7b66
always create files array on Chunk
2015-01-30 00:44:58 +01:00
Tobias Koppers
544c368ea1
added support for an async commons chunk, tests and examples
2015-01-11 23:15:11 +01:00
Tobias Koppers
de1ea9d15e
allow multiple chunks for a dependency block #640
2015-01-01 21:58:27 +01:00
Tobias Koppers
e12bc992af
include [chunkhash] tests again
...
added support for [chunkhash] with target node
2014-11-02 12:48:15 +01:00
Tobias Koppers
dd232012ca
Merge pull request #427 from diurnalist/feature/templated-path-plugin-sq
...
Add TemplatedPathPlugin to generically handle asset paths w/ template vars
2014-09-11 19:09:17 +02:00
Jason Anderson
f371945a29
Add TemplatedPathPlugin
2014-09-11 15:31:08 +02:00
Tobias Koppers
e0f975eb9e
fixes webpack/extract-text-webpack-plugin#14
2014-09-07 22:54:38 +02:00
Tobias Koppers
d80cdcefac
Code Quality
2014-06-24 18:53:32 +02:00
Tobias Koppers
80f3c48d99
better code style
2014-06-03 21:03:21 +02:00
Tobias Koppers
d3a9712193
bug fixing
2014-02-03 18:12:19 +01:00
Tobias Koppers
89fb178917
add origin for used named chunks
2014-01-24 13:32:58 +01:00
Tobias Koppers
30f954067c
track chunk origin
2014-01-23 15:31:40 +01:00
Tobias Koppers
1fa9169cf2
use initial flag for initial loaded chunks
2013-12-03 23:11:14 +01:00
Tobias Koppers
153be562db
keep commons chunk in mind when optimizing
2013-12-03 11:28:00 +01:00
Tobias Koppers
a84a0433c9
better optimizing
2013-06-17 18:55:11 +02:00
Tobias Koppers
5cdb8cbf81
cache chunks, cache assets
2013-05-08 13:28:54 +02:00
Tobias Koppers
cdbc509bb4
fixed chunk parent bug
2013-02-19 11:11:54 +01:00