Commit Graph

61 Commits

Author SHA1 Message Date
alexander.akait ab3e93b19e style: fix 2024-06-11 16:09:50 +03:00
alexander.akait 9f63f7013a refactor: more types 2024-02-16 20:39:12 +03:00
Alexander Akait f47806682c
fix: The `setStatus()` of the HMR module should not return an array, which may cause infinite recursion 2024-02-05 18:47:54 +03:00
Nitin Kumar 412ae5425e chore: udpate prettier to v3 2024-01-14 07:11:34 +05:30
alexander.akait 8273948d9d chore: improve eslint configuration 2024-01-13 16:35:31 +03:00
Evans Hauser f1ad56feec
add fetchPriority to hmr runtime 2024-01-09 15:28:19 -08:00
System233 b0defaed4a
fix lint 2023-08-02 13:46:39 +08:00
System233 d293083026
Fix: HMR setStatus() should not return an array. 2023-08-02 12:36:56 +08:00
alexander.akait 4809421990 refactor(types): more 2023-06-21 19:00:24 +03:00
alexander.akait 792ee7e516 refactor(types): more 2023-05-31 14:56:55 +00:00
Sean Larkin e958ac552b refactor(types): Improve module type strictness and refactor module type string usages in module subclasses 2023-05-04 23:19:11 +00:00
Tobias Koppers e1179bf9bb fix egde case where a HMR chunk is incorrectly downloaded when loading a unchanged chunk during HMR downloading 2022-04-01 14:45:53 +02:00
Tobias Koppers 9be408c1ec
Merge branch 'main' into webpack-hot-middleware-lazy-compilation 2022-01-20 08:58:36 +01:00
Tom Coleman d39ce25895 Exclude `webpack-hot-middleware/client` from lazy compilation 2022-01-20 15:16:14 +11:00
Tobias Koppers a9477c2409 fix HMR when experiments.lazyCompilation is enabled 2022-01-18 12:26:43 +01:00
Asriel Yu 96da766002
Merge branch 'webpack:main' into fix-callback-err-type-should-include-null 2022-01-14 20:07:21 +08:00
jeange1003 8e914b7520 fix: add CORS methods and headers for lazyCompilation 2022-01-07 16:52:13 +08:00
Asriel Yu 136b723023 fix callback err type should include null 2021-12-24 20:27:31 +08:00
Tobias Koppers 87dc2d8695 avoid modifying options object 2021-11-02 13:26:17 +01:00
Ivan Kopeykin 517429ff65 fix port 2021-10-30 19:45:33 +03:00
Tobias Koppers a8b00f864c nitpicks 2021-10-25 12:21:14 +02:00
Tobias Koppers ba154bc741 refactor and add test case 2021-10-25 12:12:52 +02:00
Chaz Gatian 537da95879 feat: add lazyCompilationBackend configuration
support customizing lazyCompilationBackend's port and server options

Fixes #14053, Fixes #14205
2021-09-16 10:47:04 -04:00
Tobias Koppers 0ad9316517 fix hmr check returning empty array 2021-08-05 16:03:30 +02:00
Tobias Koppers a87dba421a
Merge pull request #13576 from StateFarmIns/async-hmr-handlers
Allow HMR status handlers to return a Promise
2021-07-18 19:02:25 +02:00
Tobias Koppers cdf73dacf5 add workaround for node.js memory leak 2021-07-07 10:03:22 +02:00
Tobias Koppers c749122c03 improve disposing of lazy compilation backend server 2021-06-28 09:50:48 +02:00
Nathan Summers ef4aa56755 Dispose and apply must run atomically. 2021-06-21 17:21:23 -07:00
Nathan Summers e852415cd5 Allow HMR status handlers to return a Promise
The HMR system will wait until the promise settles before continuing.
2021-06-16 16:58:58 -07:00
Tobias Koppers 23c4907af5 fix bug in ContextModule, improve test case for lazy compilation 2021-05-31 18:16:21 +02:00
Juho Vepsäläinen 189a8863cd chore: Allow passing a typePrefix to ContextElementDependency
This is needed to tell different usages apart. The added information is
used by the lazy compilation feature.
2021-05-31 14:46:38 +03:00
Tobias Koppers b0fa9ccada pretty files 2021-05-11 09:31:46 +02:00
Tobias Koppers 795b4b7b50 ensure that entrypoints are always re-executed when updated 2021-04-07 17:37:06 +02:00
Tobias Koppers d23706860c allow HMR deps for lazy compilation 2021-03-22 11:59:37 +01:00
Tobias Koppers 9d28d7c1ad fix lazy compilation caching 2021-03-22 11:46:29 +01:00
Tobias Koppers 404a854c8b improve hmr error handling abilities
pass module and moduleId with self error handler
add error handlers for dependency accept handlers
pass moduleId and dependencyId with dependency accept error handler
add output.strictModuleErrorHandling to opt-in into strict module error handling
HotModuleReplacementPlugin enalbed output.strictModuleErrorHandling automatically

fixes #12826
2021-03-09 20:23:00 +01:00
Karlis Gangis 7552289daf Fix lazy compilation error message on IE11 2021-02-11 11:43:10 +02:00
Tobias Koppers c4c22ecb08
Merge pull request #12553 from Knagis/lazy-compile-options 2021-02-02 19:29:34 +01:00
Tobias Koppers 8d6bc70de5 fix typings 2021-02-01 20:08:38 +01:00
Tobias Koppers ba12efe094 change skipModule to test
allow values similar to `splitChunks.test`

using positive logic instead
2021-02-01 17:12:20 +01:00
Tobias Koppers f5652f19c4 remove unneeded code 2021-02-01 16:56:02 +01:00
Karlis Gangis f0fa61ae1f Add new options for lazyCompilation: imports and skipModule 2021-02-01 16:52:47 +02:00
Karlis Gangis 2656d072aa Fix lazy compilation ignoring the 'client' configuration option 2021-01-27 18:40:12 +02:00
Tobias Koppers 100317556e add lazy compilation for entrypoints 2021-01-22 01:01:17 +01:00
Tobias Koppers 988cf8d47a improve error handling 2021-01-21 21:05:23 +01:00
Tobias Koppers a1515fa9f0 add experimental lazy compilation 2021-01-21 17:39:56 +01:00
Tobias Koppers 48571c663f add selective runtime requirements from startup logic which doesn't prevent inlining modules
avoid using startup function for grab data from preexecuted chunks
2020-12-11 14:36:48 +01:00
Tobias Koppers 35363408c6 fix newly found eslint problems 2020-11-26 11:13:17 +01:00
Tobias Koppers 442dc46740 improve test case, convert trace into warning 2020-09-27 11:26:32 +02:00
Tran Sang 12d021c40c restore warnUnexpectedRequire assignment with the more compact version 2020-09-26 10:07:26 +09:00