Merge pull request #18857 from psachs21/patch-2

Update definitions to v4
This commit is contained in:
Daniel Rosenwasser 2017-08-16 10:59:51 -07:00 committed by GitHub
commit aa0bc8fb45
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
// Type definitions for webpack-chain 3.0
// Project: https://github.com/mozilla-neutrino/webpack-chain
// Definitions by: Eirikur Nilsson <https://github.com/eirikurn>
// Definitions by: Eirikur Nilsson <https://github.com/eirikurn>, Paul Sachs <https://github.com/psachs21>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as webpack from 'webpack';
@ -83,7 +83,7 @@ declare namespace Config {
class Module extends ChainedMap<Config> {
rules: TypedChainedMap<this, Rule>;
rule(name: string): Rule;
noParse: TypedChainedSet<this, RegExp>;
noParse(noParse: RegExp | RegExp[] | ((contentPath: string) => boolean )): this;
}
class Output extends ChainedMap<Config> {

View File

@ -83,7 +83,7 @@ config
.end()
.module
.noParse.add(/.min.js$/).end()
.noParse(/.min.js$/)
.rule('compile')
.test(/.js$/)
.include