Skip to content

Commit 3823eb1

Browse files
committed
fix(index): migrate loaders => rules
BREAKING CHANGE: requires webpack@>=2.1.0.beta.25
1 parent 1fb0174 commit 3823eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export = function tslint({options = undefined, exclude = null} = {}) {
99
return function tslint(this: WebpackConfigWithMetadata): WebpackConfigWithMetadata {
1010
return {
1111
module: {
12-
loaders: get(this, 'module.loaders', []).concat([
12+
rules: get(this, 'module.rules', []).concat([
1313
{ test: /\.tsx?$/, loader: 'tslint', enforce: 'pre', exclude: exclude || (this.metadata.root ? [path.join(this.metadata.root, 'node_modules')] : []) }
1414
])
1515
},

0 commit comments

Comments
 (0)