Commit Graph

73 Commits

Author SHA1 Message Date
Asriel Yu 136b723023 fix callback err type should include null 2021-12-24 20:27:31 +08:00
Tobias Koppers b6609a4f6b add `experiments.buildHttp`
allows to build remote resources
stores remote resources in a lockfile
2021-08-05 15:47:18 +02:00
Tobias Koppers 49182bf5ad close compilers in MultiCompiler test 2021-07-13 10:50:38 +02:00
Tobias Koppers 878ce6b11a respect multi compiler `dependencies` and `parallelism` when using `invalidate` 2021-05-17 13:49:43 +02:00
Seth Benjamin 94bd3bc6f9 fix: allow invalidation after first watch run 2021-03-19 12:32:50 -07:00
Tobias Koppers 174eb3cdf8 fix race condition in MultiCompiler queuing
fixes https://github.com/vercel/next.js/issues/23125
2021-03-17 11:04:41 +01:00
Tobias Koppers 1ebc7ca974 fix some incorrect properties accesses
fix some edge cases with MultiCompiler

fixes #12770
2021-02-24 20:12:32 +01:00
Tobias Koppers 51057e781c fix handler called with empty stats 2021-02-14 21:57:52 +01:00
Tobias Koppers 4d0f567144 cheaper options access 2021-02-14 21:43:30 +01:00
Tobias Koppers e7d9457963 refactor dependencies handling in MultiCompiler
add support for dependencies during watching
add parallelism option for MultiCompiler
2021-02-13 21:02:47 +01:00
Tobias Koppers a945a9b62c use typescript 4.2 2021-01-13 21:40:39 +01:00
Tobias Koppers 5a2fa99055 call invalid hook also when manually invalidating watching 2020-07-15 19:34:23 +02:00
Tobias Koppers 6c425546df Avoid using real watchers in MultiWatching test case
add watchFileSystem to MultiCompiler and typings
2020-07-08 11:17:00 +02:00
Tobias Koppers 6477ca56f8 Split options defaulting in normalization and defaults
Apply defaults after plugins are applied to allow plugins to feature their own defaults.
This allows to make preset plugins.
2020-02-17 19:12:54 +01:00
Emanuele Stoppa e607681277 fix: replaced some TODO with correct types and fixed some runtime issue 2019-11-28 22:48:01 +01:00
Tobias Koppers b73d35bbee Merge tag 'v4.39.0' into next
4.39.0
2019-08-05 13:12:09 +02:00
Tobias Koppers 98148b61c6 add infrastructureLog hook to MulitCompiler 2019-08-01 14:04:25 +02:00
Tobias Koppers def2947929 add getInfrastructureLogger to MultiCompiler 2019-08-01 13:51:21 +02:00
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