loader-runner
loader-runner copied to clipboard
'this.fs' does not work from inside the module
Hi, I'm running into this issue when trying to load a file from inside the loader: `ReferenceError: fs is not defined
35 | console.log(this.getDependencies());
36 |
> 37 | fs.readFile(fileToSearch, 'utf8', (error, data) => {
| ^`
Error doesn't happen when running from webpack config. Only with loader-runner.
Could you help me out?