We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a754e2 commit f7e2cc2Copy full SHA for f7e2cc2
packages/app/src/sandbox/eval/transpiled-module.js
@@ -900,15 +900,14 @@ export default class TranspiledModule {
900
}
901
902
postEvaluate(manager: Manager) {
903
- if (!manager.webpackHMR) {
904
- // For non cacheable transpilers we remove the cached evaluation
905
- if (
906
- manager.preset
907
- .getLoaders(this.module, this.query)
908
- .some(t => !t.transpiler.cacheable)
909
- ) {
910
- this.compilation = null;
911
- }
+ // Question: do we need to disable this for HMR projects?
+ // For non cacheable transpilers we remove the cached evaluation
+ if (
+ manager.preset
+ .getLoaders(this.module, this.query)
+ .some(t => !t.transpiler.cacheable)
+ ) {
+ this.compilation = null;
912
913
914
0 commit comments