Skip to content

Commit

Permalink
Merge pull request #32 from Kovensky/webpack2-support
Browse files Browse the repository at this point in the history
Support webpack 2 beta
  • Loading branch information
zinserjan authored Jul 16, 2016
2 parents 2c4ef65 + 6773aaa commit ef624c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"license": "MIT",
"peerDependencies": {
"mocha": "^2.4.5",
"webpack": "^1.12.13"
"webpack": "^1.12.13 || ^2.1.0-beta.15"
},
"devDependencies": {
"babel-cli": "^6.5.1",
Expand Down
2 changes: 1 addition & 1 deletion src/webpack/InjectChangedFilesPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class InjectChangedFilesPlugin {

// and finally set changed files
chunk.files.forEach((file) => {
if (!chunk.initial) {
if (!(chunk.isInitial ? chunk.isInitial() : chunk.initial)) {
return;
}
this.setChangedFiles(compilation, file);
Expand Down

0 comments on commit ef624c3

Please sign in to comment.