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

Commit

Permalink
Adds rule test merge via string to regex, fixes externals not chainable
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman committed Feb 15, 2017
1 parent 5f0b0c6 commit a15b49e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
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.3.0",
"version": "1.4.0",
"main": "src/Config.js",
"repository": "mozilla-rpweb/webpack-chain",
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions src/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Config {

externals(externals) {
this.options.set('externals', externals);
return this;
}

devtool(devtool) {
Expand Down
4 changes: 4 additions & 0 deletions src/Rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ module.exports = class extends ChainedMap {
return this.exclude(...value);
}

case 'test': {
return this.test(new RegExp(value));
}

case 'loader': {
return Object
.keys(value)
Expand Down

0 comments on commit a15b49e

Please sign in to comment.