Skip to content

Commit 1fb0174

Browse files
committed
fix(index): migrate to loaders.enforce
1 parent 4810aca commit 1fb0174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

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

0 commit comments

Comments
 (0)