Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Fixes exception with empty rule entries with loader only
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman committed Feb 10, 2017
1 parent 7cc56ed commit 7964b34
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
@@ -1,6 +1,6 @@
{
"name": "webpack-chain",
"version": "1.0.2",
"version": "1.0.3",
"main": "src/Config.js",
"repository": "mozilla-rpweb/webpack-chain",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/Rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = class extends ChainedMap {
}

toConfig() {
const rule = this.entries();
const rule = this.entries() || {};

if (this._include.size) {
rule.include = [...this._include];
Expand Down

0 comments on commit 7964b34

Please sign in to comment.