Skip to content

Commit

Permalink
use inputFileSystem instead of real filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Sep 15, 2016
1 parent 5910fef commit 17ca14c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/DllReferencePlugin.js
Expand Up @@ -5,7 +5,6 @@
var DelegatedSourceDependency = require("./dependencies/DelegatedSourceDependency");
var DelegatedModuleFactoryPlugin = require("./DelegatedModuleFactoryPlugin");
var ExternalModuleFactoryPlugin = require("./ExternalModuleFactoryPlugin");
var fs = require("fs");

function DllReferencePlugin(options) {
this.options = options;
Expand All @@ -21,9 +20,9 @@ DllReferencePlugin.prototype.apply = function(compiler) {
var manifest = this.options.manifest;
if(typeof manifest === "string") {
params.compilationDependencies.push(manifest);
fs.readFile(manifest, "utf-8", function(err, result) {
compiler.inputFileSystem.readFile(manifest, function(err, result) {
if(err) return callback(err);
params["dll reference " + manifest] = JSON.parse(result);
params["dll reference " + manifest] = JSON.parse(result.toString("utf-8"));
return callback();
});
} else {
Expand Down

0 comments on commit 17ca14c

Please sign in to comment.