Commit Graph

72 Commits

Author SHA1 Message Date
alexander.akait 423e89b2c7 style: improve style of code 2024-08-02 19:32:13 +03:00
alexander.akait ab3e93b19e style: fix 2024-06-11 16:09:50 +03:00
alexander.akait 3e3dfd781b fix(types): more 2024-03-17 20:15:44 +03:00
alexander.akait 9894226149 refactor(types): more 2023-06-14 19:46:53 +03:00
Mark Molinaro ecf87288d5 perf: Remove Error.captureStackTrace from all WebpackErrors 2021-06-07 07:15:28 +00:00
Tobias Koppers 99d7a205c2 prettier 2020-11-28 20:04:11 +01:00
Tobias Koppers e1a405e3c2 prettier 2020-11-26 10:52:55 +01:00
Tobias Koppers b9c50fdb09 fix jsdoc documentations 2020-04-28 19:42:58 +02:00
Tobias Koppers 95297186d5 remove Array.prototype.reduce calls to simplify code 2020-01-20 14:41:39 +01:00
Tobias Koppers 051e208d1e Merge tag 'v4.40.2' into next
4.40.2
2019-09-13 16:50:45 +02:00
Guillaume Chau b4c7fd5ff9
fix: check for asset nullity before fileFilter
Related: https://github.com/vuejs/vue-cli/issues/4572
2019-09-13 15:28:43 +02:00
Tobias Koppers 27a5780704 Merge tag 'v4.40.1' into next
4.40.1
2019-09-13 11:31:09 +02:00
Tobias Koppers 7bde43f47a Merge tag 'v4.40.0' into next
4.40.0
2019-09-13 11:12:26 +02:00
Haoqun Jiang 025c253732
fix: check the asset's existence before running filter
fixes https://github.com/vuejs/vue-cli/issues/4572
2019-09-13 12:37:33 +08:00
Tobias Koppers 758269e814 add emit/updateAsset to Compilation
add asset info with
* immutable for long term cache-able asset
* size for the asset size in bytes
* development for devtools
* hotModuleReplacement for HMR assets

show asset info in stats
2019-09-11 14:43:42 +02:00
Florent Cailhol aa9586a76c Add types to SizeLimitsPlugin 2018-11-08 22:13:56 +01:00
Tobias Koppers 7a43a27eda make Compilation.chunks a Set 2018-09-06 17:04:01 +02:00
Tobias Koppers 3cf01999b5 add ChunkGraph
move chunk modules and module chunks into the ChunkGraph
remove outdated unit tests
2018-08-14 15:32:13 +02:00
Tobias Koppers cf5f1d723c format existing code 2018-07-30 21:29:21 +02:00
Florent Cailhol dad4a4c539 Convert SizeFormatHelpers 2018-07-26 22:37:21 +02:00
Tobias Koppers 53103a9690 Cleanup error location and origin information 2018-06-04 10:35:46 +02:00
Mohsen Azimi fe728290e9
Remove extra argument passed to getEntrypointSize in SizeLimitsPlugin 2018-03-28 22:08:43 -07:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
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