Skip to content

Commit 50bcc45

Browse files
dweber019niieani
authored andcommitted
fix(index): remove options as it has to be provided over options plugin since webpack >=2.1.0-beta.23 (#3)
BREAKING CHANGE: removed 'options' as it has to be provided over options plugin from webpack >=2.1.0-beta.23. Note: We can use webpack.LoaderOptionsPlugin only once, so if we use this in the plugin directly we can't use it again. So just removing the tslint from the root config of webpack in this plugin and updating somewhere in the readme should be fine.
1 parent 961b002 commit 50bcc45

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ import * as path from 'path'
55
* Tslint loader support for *.ts files
66
* See: https://github.com/wbuchwalter/tslint-loader
77
*/
8-
export = function tslint({options = undefined, exclude = null} = {}) {
8+
export = function tslint({exclude = null} = {}) {
99
return function tslint(this: WebpackConfigWithMetadata): WebpackConfigWithMetadata {
1010
return {
1111
module: {
1212
rules: get(this, 'module.rules', []).concat([
1313
{ test: /\.tsx?$/, loader: 'tslint-loader', enforce: 'pre', exclude: exclude || (this.metadata.root ? [path.join(this.metadata.root, 'node_modules')] : []) }
1414
])
15-
},
16-
tslint: options
15+
}
1716
}
1817
}
1918
}

0 commit comments

Comments
 (0)