Skip to content

Commit 4ace616

Browse files
committed
Fix: decache should be above not below the require call.
1 parent ca44432 commit 4ace616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const operator = {
1313
},
1414

1515
getVarData (relativePath, property) {
16-
const data = require(relativePath);
1716
decache(relativePath);
17+
const data = require(relativePath);
1818
if (!data) {
1919
throw new Error(`No data in '${relativePath}'`)
2020
}

0 commit comments

Comments
 (0)