Florent Cailhol
d4811b0d37
Use for-of loops instead of forEach
2018-01-23 22:53:18 +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
ebab3e0f8e
Merge pull request #6341 from webpack/refactor/chunk-group-part-2
...
Refactor chunk graph
2018-01-22 05:21:22 +01:00
Mihail Bodrov
a403cbf3a9
Optimize regexp, getEntryPointsSize
2018-01-20 00:43:27 +03: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
Florent Cailhol
36c690d37f
Use tapable instead of 'plugin'
2017-12-08 14:23:31 +01:00
Tobias Koppers
f7c2f8e470
Update code style to arrow functions
2017-11-08 11:56:01 +01:00
Jarid Margolin
70e48d2c31
Create base WebpackError class with inspect method.
2017-04-03 10:42:53 -04:00
Stephen Hurwitz
b36a8b6351
Removes excess commas from performance hint output
...
Joining Arrays of strings without providing separator defaults to ",".
This looked odd in the console output when being warned about multiple
entry points.
2017-02-28 22:03:37 -08:00
Jeff Escalante
7c09a4d952
a couple more fixes that were initially missed
2017-02-16 11:16:47 -05:00
Jeff Escalante
ff96f7188a
fix more stack trace captures, remove conditional detection
2017-02-15 14:55:54 -05:00
wtgtybhertgeghgtwtg
646d20d5f4
Fix join. ( #3821 )
...
Per @sokra I'm overriding checks and merging.
2017-01-06 19:36:09 -06:00
wtgtybhertgeghgtwtg
ec7d3e8664
Updated `SizeLimitsPlugin`. ( #3688 )
...
* Updated `SizeLimitsPlugin`.
* Do requested changes.
2017-01-03 13:21:51 -06:00
Sean Larkin
aa8d01bf8d
refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot ( #3636 )
...
* refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot
* This change allows for buildin to now be part of the lint test by addition of an extra .eslintrc file which extends existing but sets es6 to false
* Turned on no-unused-vars for eslint, and then removed all warnings from turning that feature on
* Was getting notified of errors in "quote" property in eslintrc, so changed to correct value from error to 2.
* beautify
* swap invalid eslint config val
2016-12-30 09:43:49 -06:00
Tobias Koppers
84913ec302
fixes #3596
2016-12-28 14:52:06 +01:00
Tobias Koppers
37b7474651
Refactoring, make options simpler
...
breaking change: performance options changed
2016-12-14 11:33:57 +01:00
Sean Larkin
5da9d8c7ef
fix(performance): extract size function from out of entrypoint class
2016-12-13 21:28:59 -06:00
Sean Larkin
128000a846
beautify
2016-12-13 10:30:46 -06: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
41530a1adc
chore(performance): remove debugger statements after verifying passes
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
Sean Larkin
c0068f2ea4
chore(performance): remove dup logic case
2016-12-07 17:22:20 +01:00
Sean Larkin
44f6f07ec2
chore(performance): cleanup logic errors, reformat test expects with new colomn [big] format if empty
2016-12-07 17:22:20 +01:00
Sean Larkin
c6850b3481
chore(performance): cleaned up unused variables, removed compilation from constructor, added stats additional messages
2016-12-07 17:22:20 +01:00
Sean Larkin
b4eacb6764
chore(performance): update NoAsyncChunksWarning referenced url
2016-12-07 17:22:19 +01:00
Sean Larkin
cc1914777c
chore(performance): fix formatting in warnings/errors
2016-12-07 17:22:19 +01:00
Sean Larkin
1f9e1a69c6
chore(performance): extract formatSize to helper class, make stats table more reusable
2016-12-07 17:22:19 +01:00
Sean Larkin
785cfd50a8
chore(performance): add extra warning file forgot to check in
2016-12-07 17:22:18 +01:00
Sean Larkin
93ae6bc32a
chore(performance) cleanup unused functionality, partial cleanup
2016-12-07 17:22:18 +01:00
Sean Larkin
9894b58dd1
fix(performance): modified values to 250kb across the board for accurate reporting, modified string logic
2016-12-07 17:22:18 +01:00
Sean Larkin
0833c59f46
feat(performance): removed logic out of stats and into plugin for assets over size limit
2016-12-07 17:22:17 +01:00
Sean Larkin
774a89b583
feat(perfbudgets): added errorOnHint flag defaulting to false for opt-in
2016-12-07 17:22:13 +01:00
Sean Larkin
000dae1889
fix(tests): Updated tests across the board to work with perf budgets
2016-12-07 17:22:13 +01:00
Sean Larkin
e360c8b7c8
fix(test): update test, fix asset type case, and formatting
2016-12-07 17:21:27 +01:00
Sean Larkin
dd3c9f25b8
chore(lint): run npm beautify
2016-12-07 17:21:27 +01:00
Sean Larkin
4d89326368
chore(perfbudget): normalize error message indenation and readibility
2016-12-07 17:21:27 +01:00
Sean Larkin
9c337ffd81
chore(perfbudget): license updates
2016-12-07 17:21:26 +01:00
Sean Larkin
bdc62243e4
chore(perfbudget): cleaned up visual display and statistics
2016-12-07 17:21:26 +01:00
Sean Larkin
9e8c5f86ea
feat(perfbudgets): Add separate classes for warnings, logic rewrite for plugin
2016-12-07 17:21:26 +01:00
Sean Larkin
fc85e639c0
chore(cleanup): refactored the emittedAssets Warning to be more modular
2016-12-07 17:21:25 +01:00
Sean Larkin
3fe1692e33
feat(chunk): added isAsync() function and additional NoAsyncChunks warning
2016-12-07 17:21:25 +01:00
Sean Larkin
5747eff8c9
fix(beautify): run npm beautify
2016-12-07 17:21:24 +01:00
Sean Larkin
0f0bdff0e1
fix(syntax): fixed edge case where assets do not exist, and added schema
2016-12-07 17:21:23 +01:00
Sean Larkin
2741098198
feat(perfbudget): creat initialAssetsCost with hardcoded limit
2016-12-07 17:21:22 +01:00
Sean Larkin
e949aa1512
feat(perfbudgets): fixed issues with bad asset checking, and formatting
2016-12-07 17:21:22 +01:00
Vignesh Shanmugam
7736ebe367
Add color information to stats based on bundle size
2016-12-07 17:21:20 +01:00
Vignesh Shanmugam
d3f2927d77
normalize asset size and produce warnings for performance
2016-12-07 17:21:19 +01:00
Sean Larkin
cbe2f06850
feat(perf): added initial setup for perf plugins, need to configure test cases and stats output based on perf props
2016-12-07 17:21:18 +01:00