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
Tobias Koppers
fcca1d649d
analyse source code for side effects
...
mark the module as side effects free in such cases
allow 3rd state TRANSITIVE_ONLY to be side-effect-free but dependencies should still be included (for mini-css-extract-plugin)
2020-10-06 14:10:29 +02:00
Ivan Kopeykin
4cd526f970
hmr support update
...
- import.meta.hot to import.meta.webpackHot
- create separate tests for import.meta.webpackHot
- remove HMRApiDependency in favor of ConstDependency
2020-06-24 17:22:28 +03:00
Ivan Kopeykin
104845a419
support import.meta.hot
2020-06-22 18:49:57 +03:00
Tobias Koppers
3b4a7455df
use parser state instead of module to store harmony/dynamic exports state
...
this is important for incremental build
2019-12-07 01:04:38 +01:00
Florent Cailhol
998f768d18
Migrate HotTestCases to Jest
2018-01-24 23:31:56 +01:00
Tobias Koppers
bd35d4f65d
allow to ignore errors and fire events
2016-07-02 17:30:21 +02:00
Tobias Koppers
59527bf3c7
more reliable HMR test cases
2016-06-29 14:42:21 +02:00
Tobias Koppers
1cd6c4eeba
better error messages in HMR
...
events for ignored updates
warnings to console when updates are ignored
2016-06-24 11:17:25 +02:00