Commit Graph

43 Commits

Author SHA1 Message Date
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
Tran Sang 37871d0594 fix: warnUnexpectedRequire binds wrong variable in for-loop 2020-09-25 12:24:28 +09:00
Tobias Koppers 6b4ce6e011 improve HMR plugin with multiple runtimes 2020-07-28 14:06:04 +02:00
Hana Shiro 381283a840 Prevent retrieving properties in undefined object in jsHMR 2020-06-16 08:46:03 +08:00
Tobias Koppers 50ec72a6ca use the full hash on modules that need the full hash of the compilation
use getFullHash runtime module for updating the hash in HMR
2020-04-30 17:57:01 +02:00
Tobias Koppers 54a90430a2 fix bug in hmr runtime 2020-04-30 17:31:37 +02:00
Tobias Koppers 2d95f1b8d7 refactor HMR javascript part to reduce duplication
add invalidate to HMR API
2020-04-15 11:12:33 +02:00
Mohsen Azimi 7b07a8db66 Upgrade to Prettier 2 2020-03-28 18:20:24 -04:00
Tobias Koppers 0ea81b542c get rid of some hacks in declarations file 2019-11-28 16:19:18 +01:00
Tobias Koppers 09f2fa7273 Merge tag 'v4.33.0' into next
4.33.0
2019-06-04 23:23:25 +02:00
Tobias Koppers 8066eaf299 put runtime modules into separate place in chunks
don't include them in modules array/object
better stats output for runtime moduels
2018-11-29 16:23:31 +01:00
Tobias Koppers 9d91861592 Refactor HMR for runtime modules
fixed a few HMR bugs
allow other module types for HMR
made HMR more flexible
2018-11-29 16:22:29 +01:00