Skip to content

Commit 8d5c2c8

Browse files
committed
Merge pull request webpack#732 from Arnavion/master
Expose the compiler's input filesystem to loaders.
2 parents 107aa63 + 0d93cbf commit 8d5c2c8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎lib/NormalModule.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ NormalModule.prototype.fillLoaderContext = function fillLoaderContext(loaderCont
6969
loaderContext._module = this;
7070
loaderContext._compilation = compilation;
7171
loaderContext._compiler = compilation.compiler;
72+
loaderContext.fs = compilation.compiler.inputFileSystem;
7273
compilation.applyPlugins("normal-module-loader", loaderContext, this);
7374
};
7475

0 commit comments

Comments
 (0)