custom-module: attempt to bypass system file cache upon hot reload
This commit is contained in:
parent
3318e9a312
commit
48c0440022
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ class CustomModule {
|
|||
var code
|
||||
|
||||
try {
|
||||
code = fs.readFileSync(this.filename, 'utf8')
|
||||
code = fs.readFileSync(this.filename, {encoding: 'utf8', flag: 'rs'}) // flag 'rs' to avoid cache issue on windows
|
||||
} catch(err) {
|
||||
console.error(`(ERROR) ${this.submodule ? 'Submodule' : 'Custom module'} not found: ${this.filename}`)
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue