Commit Graph

116 Commits

Author SHA1 Message Date
Mohsen Azimi 589f40b26a Add missing class member initializations found by TypeScript 2018-04-11 16:48:44 +02:00
Tobias Koppers 1b50e4e96d
Merge pull request #6833 from webpack/ellipsis
Use ellipsis instead of '...'
2018-03-29 11:00:28 +02:00
Mohsen Azimi d6b2515e0c
Remove extra argument passed to ContextModuleFactory in Compiler 2018-03-28 22:03:28 -07:00
Florent Cailhol 3983803d30 Destructure 'require' to improve readability 2018-03-22 12:05:58 +01:00
Florent Cailhol 72786beee7 Use ellipsis instead of '...' 2018-03-22 10:54:18 +01:00
Maksim ea6e173551 Move concurrent compilation error to separate class 2018-03-13 13:10:42 +03:00
Maksim 60a5edc48d Wrap callback in compiler's run method 2018-03-07 12:14:51 +03:00
Maksim Nazarjev 07c1f6d86f Prevent webpack from running twice at a time 2018-03-07 00:56:31 +03:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Suguru Motegi 864e563173 replace Async with Neo-Async 2018-02-11 14:31:08 -08:00
Thibaut Dutartre af8de036b2 Transform done hook into async 2018-01-25 13:56:50 +01:00
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 9c8098c635
Merge pull request #6370 from webpack/remove_v3_deprecated
Remove v3 deprecated APIs
2018-01-24 09:43:10 +01:00
Tobias Koppers 7a1b357aad
Merge branch 'next' into for_of_loops 2018-01-24 09:01:31 +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
Evan Scott 1f29fa9b51 perf: refactor various timestamp caches into ES6 Maps
This change satisfies https://github.com/webpack/webpack/issues/6234
which desires to change the timestamp caches from plain objects to
the ES6 Map type to avoid deopts, since v8 expects things to be
added to Maps but objects are only fast if properties aren't added
dynamically after initial assignment.
2018-01-23 02:30:22 -05:00
Florent Cailhol 7f303e5260 Use Buffer.from instead of new Buffer 2018-01-22 17:23:34 +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
EugeneHlushko 2aab060f26 Refactor: indexOf >< checks to includes 2018-01-11 18:58:39 +02:00
Florent Cailhol 0014042c53 Move Watching to its own file 2017-12-31 18:16:03 +01:00
Florent Cailhol 7dd41b55c6 Replace deprecated Tapable#apply by Plugin#apply 2017-12-20 11:53:56 +01:00
Tobias Koppers 7d87f34269 Only create one RequestShortener per Compiler
move Compiler.context assignment into Compiler
2017-12-04 12:23:42 +01:00
Tobias Koppers fb689d9c32 Merge branch 'refactoring/plugin-system-compiler' into refactoring/plugin-system-all 2017-11-28 16:35:57 +01:00
Tobias Koppers 7787b4ad13 upgrade tapable for Compilation 2017-11-27 21:14:16 +01:00
Tobias Koppers 31e9625dfe upgrade tapable for Compiler 2017-11-27 21:01:44 +01:00
Tobias Koppers 5a4f0aca67 change imports of tapable to old version
prepare to migrate to new tapable version
2017-11-27 20:56:42 +01:00
Tobias Koppers 5e39ec46ee Allow to override resolve configuration 2017-11-18 08:12:35 +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 2a22cbd43d code style fixes 2017-11-08 05:58:48 +01:00
Tobias Koppers 51c572c4f5 refactor more properties to Sets 2017-11-07 09:17:12 +01:00
doly mood bf8b691d9f fix: watch-run params should be compiler 2017-09-29 14:15:37 +08:00
Tobias Koppers 0975d13da7 assign correct cache to child compilation
fixes webpack-contrib/extract-text-webpack-plugin#612
2017-09-13 16:29:37 +02:00
Adam Thomann 15f4894ebe Convert bind(this) to arrow functions 2017-08-11 01:52:25 -04:00
Huang Chi-Han 6c0e4520ea Fix typo that causes "TypeError: this.compiler.compiler is not a function" since compiler is undefined. 2017-07-12 15:22:02 +08:00
Flavio Corpa 43f967cd11 Adjust style to es6 🎉 2017-07-12 08:03:22 +02:00
Flavio Corpa 8975d8ed09 Merge branch 'master' into master 2017-07-12 07:57:53 +02:00
Kyle Truong 79926b3eed - Edit PR to use normal functions again due to ‘arguments’ not working with arrow functions
- reverse timeout change back to normal in NodeWatchFileSystem.test.js
2017-07-07 10:52:07 -04:00
Kyle Truong 13bc80b1a4 - Put Watching as a property on Compiler rather than a static method 2017-07-07 09:11:15 -04:00
Kyle Truong 6dffccaa72 - Remove ‘self’ references from lib/Compiler and use more arrow functions instead 2017-07-07 09:11:15 -04:00
Kyle Truong 4378c92c60 - Add more tests 2017-07-07 09:11:15 -04:00
Kyle Truong f080ebe0ee - Add tests to Compiler and Watching 2017-07-07 09:11:15 -04:00
Kyle Truong 567868925d 4099 ES6 Refactor lib/Compiler.js 2017-07-07 09:11:15 -04:00
Tobias Koppers ee541d9ab3 Merge pull request #4704 from webpack/bugfix/child-records-cache
assign correct records and cache to child compilations
2017-05-16 14:35:03 +02:00
André Cruz b0c45da2fd Fix _done function not dealing with compilation being undefined 2017-05-06 00:35:39 +01: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 6afc397b99 perf: use Date.now() instead of new Date().getTime()
new Date().getTime() is 2x slower than Date.now(), see https://jsperf.com/new-date-vs-date-now-vs-performance-now/6
2017-05-04 10:19:54 +08:00
Flavio Corpa 859e0ddab6 Replace 2 spaces with 1 tab 2017-05-03 14:54:50 +02:00
Flavio Corpa 2178f1ad50 Merge branch 'master' into master 2017-05-02 10:34:10 +02:00