Commit Graph

55 Commits

Author SHA1 Message Date
Tobias Koppers e9c0d068dd refactor filesystem interfaces
add Compiler.intermediateFileSystem
avoid using `path` and `fs` module when possible
move `join`, `mkdirp` and `dirname` into utils
join and dirname is optional in FileSystem interface
remove mkdirp from Filesystem interface
2019-06-11 17:32:58 +02:00
Florent Cailhol b12f24d20c Update hook types 2019-05-10 09:52:22 +02:00
Florent Cailhol e06b4853d6 Add compiler typings 2018-12-12 10:26:53 +01:00
Florent Cailhol 3d72d6144e Add CompilerStatus type 2018-12-10 11:41:15 +01:00
Florent Cailhol 9caaa664f7 Refactor webpack main 2018-12-09 15:32:03 +01:00
Tobias Koppers 7340fbb547 refactor Cache
add a new hookable Cache class
removed CachePlugin
add MemoryCachePlugin
refactor timestamps
create FileSystemInfo class
2018-09-27 13:20:19 +02:00
Tobias Koppers 2e82dbb63c
Merge pull request #7813 from webpack/refactor/freeze_hooks
Freeze hooks to prevent deopts
2018-07-30 22:47:13 +02:00
Tobias Koppers cf5f1d723c format existing code 2018-07-30 21:29:21 +02:00
Florent Cailhol fc4f30329d Freeze hooks to prevent deopts 2018-07-30 14:25:40 +02:00
Florent Cailhol c68d0d2171 Remove Tapable compatibility 2018-06-26 08:31:08 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Florent Cailhol 3983803d30 Destructure 'require' to improve readability 2018-03-22 12:05:58 +01:00
Maksim ccc32d31bf Remove unnecessary handler wrapper 2018-03-13 13:16:39 +03:00
Maksim ea6e173551 Move concurrent compilation error to separate class 2018-03-13 13:10:42 +03:00
Maksim 9f60f50644 Prevent multi compiler from running twice at a time 2018-03-07 13:45:38 +03:00
Tobias Koppers f32bd41c52 fix linting 2018-02-25 02:15:37 +01: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
Florent Cailhol d4811b0d37 Use for-of loops instead of forEach 2018-01-23 22:53:18 +01:00
Florent Cailhol 1590751da2 Replace dictionaries by Map or Set 2018-01-06 09:45:57 +01:00
Florent Cailhol fb1c041a95 Forward run and watchRun calls when using MultiCompiler 2017-12-29 17:25:25 +01:00
Florent Cailhol f737b26260 Remove some plugin calls 2017-12-14 14:42:49 +01:00
Tobias Koppers 6689539bc2 migrate missed watchClose hook 2017-11-28 16:23:43 +01:00
Tobias Koppers 0ccc0374d7 upgrade tapable for MultiCompiler 2017-11-28 10:23:35 +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 75f68a2635 fixes linting, remove not needed context arguments 2017-11-08 20:49:41 +01:00
Ryan Harvey c4bdc665a8 use set for efficient delete 2017-09-17 10:31:53 -05:00
Ryan Harvey ccaca5fa17 display possible circular compiler dependencies 2017-09-17 08:38:19 -05:00
Ryan Harvey 1bd6055407 remove unused variables 2017-09-17 08:36:27 -05:00
Ryan Harvey ecd02195a2 return error object for compiler dependency errors 2017-09-11 08:55:28 -05:00
Ryan Harvey 934534e969 fix lint error in mutli compiler 2017-09-08 11:46:47 -05:00
Ryan Harvey eda2897a6e generate error message for missing compiler dependencies 2017-09-08 11:18:12 -05:00
Tobias Koppers 991b360c90 fix useless-escape linting issues 2017-07-24 11:54:06 +02:00
Kyle Truong 18cdba87f5 4099_ES6 refactor lib/MultiCompiler.js 2017-06-14 06:33:03 -04:00
SendilKumar N cd688f84da changing async to asyncLib 2017-04-05 21:06:23 +08:00
Tobias Koppers 83ad4b0f35 Merge pull request #4169 from kball/IS4156-multicompiler-watch-options
Update MultiCompiler and lib/webpack to better support multiple watchOptions
2017-04-04 18:21:13 +02:00
Tobias Koppers ac1a25d7a0 allow passing a single options object to a MultiCompiler 2017-04-04 11:43:48 +02:00
James Newell 2dfdbad047 emit watch-close event when watcher closes 2017-03-06 14:32:34 +11:00
Kevin Ball ea2f25f319 Update MultiCompiler and lib/webpack to better support multiple watchOptions 2017-02-01 15:14:18 -08:00
Tobias Koppers 8e69a80847 code linting 2017-01-11 12:29:01 +01:00
Alistair Brown 5da3c99584 Add tests for MultiCompiler (#3802)
* Split out multi-compiler functionality

* Add tests for MultiWatching

* Add tests for MultiStats

* Add tests for MultiCompiler
2017-01-07 00:56:47 -06:00
Yuriy Ostapenko 9f6a601ca6 Fix multiconfig watch (#3737)
* Fix MultiCompiler watch mode stats output

Previously, stats would contain stale configuration child stats. This is very confusing, since it looks as if some things are emitted when they shouldn't be.

Add support for making assertions to stats in watch tests.

* Fix test hanging on Windows/Linux

Parallel watchpack's (happens when MultiCompiler is in use) do not emit events in watch tests, unless some timeout is added.
This does not seem to be an issue on macOS.

* Correctly close watcher in watch tests

This fixes macOS build, where changes keep being triggered
2017-01-04 23:46:13 -06:00
Tobias Koppers 52cf8a1209 consistent order in MultiCompiler 2016-09-20 00:20:16 +02:00
Tobias Koppers e896d14829 MultiCompiler with compilers depend on other 2016-09-16 01:20:34 +02:00
Ahmet Katrancı 8ff6cb5fed Report constructor correctly when inheriting from Tapable 2015-08-18 12:35:57 +01: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
Avi Haiat daff7440a6 feat(app): Fix some obvious lint errors and warnings 2015-07-08 15:52:41 +03:00
Tobias Koppers cebd3b9722 added linting 2015-04-23 23:55:50 +02:00
Tobias Koppers dcc9d5867f fixes #819 2015-02-28 01:40:11 +01:00