@farmfe/runtime
Advanced tools
Comparing version 0.12.4 to 0.12.5
# @farmfe/runtime | ||
## 0.12.5 | ||
### Patch Changes | ||
- 772381b0: Fix concurrent lazy compilation failed | ||
## 0.12.4 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@farmfe/runtime", | ||
"version": "0.12.4", | ||
"version": "0.12.5", | ||
"description": "Runtime of Farm", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -157,3 +157,2 @@ import { Module } from "./module"; | ||
if (force) { | ||
this.reRegisterModules = true; | ||
this.clearCache(moduleId); | ||
@@ -165,3 +164,12 @@ } | ||
if (force) { | ||
const resourceLoaded = this.resourceLoader.isResourceLoaded(resource.path); | ||
this.resourceLoader.setLoadedResource(resource.path, false); | ||
if (resourceLoaded) { | ||
return this.resourceLoader.load({ | ||
...resource, | ||
// force reload the resource | ||
path: `${resource.path}?t=${Date.now()}` | ||
}); | ||
} | ||
} | ||
@@ -177,3 +185,2 @@ return this.resourceLoader.load(resource); | ||
} | ||
this.reRegisterModules = false; | ||
const result = this.require(moduleId); | ||
@@ -180,0 +187,0 @@ // if the module is async, return the default export, the default export should be a promise |
28775
683