Skip to content

Commit

Permalink
1.0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
SequoiaBuild committed Jun 22, 2018
1 parent d682c12 commit b4297aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(C) Copyright HCL Technologies Ltd. 2018
(C) Copyright IBM Corp. 2012, 2016 All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = class PreamblePlugin {
tap(compiler, "make", (compilation__, callback) => {
this.getResolver(compiler, resolver => {
async.eachOf(this.options && this.options.files || [], (elem, i, cb) => {
resolver.resolve({}, compiler.context, elem, {}, (err, file) => {
const resolverCb = (err, file) => {
if (err) {
return cb(err);
}
Expand All @@ -59,7 +59,12 @@ module.exports = class PreamblePlugin {
}
cb(error);
});
});
};
if (compiler.resolverFactory) {
resolver.resolve({}, compiler.context, elem, {}, resolverCb);
} else {
resolver.resolve({}, compiler.context, elem, resolverCb);
}
}, (err) => {
callback(err);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpack-preamble-plugin",
"version": "1.0.2-0",
"version": "1.0.2",
"peerDependencies": {
"webpack": ">= 2.2.0"
},
Expand Down

0 comments on commit b4297aa

Please sign in to comment.