Skip to content

Commit

Permalink
feat(index): migrate to object based parameters
Browse files Browse the repository at this point in the history
BREAKING CHANGE: method takes in an object, rather than parameters
  • Loading branch information
niieani committed Jun 23, 2016
1 parent baf76d4 commit c5c652e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as path from 'path'
* See: https://github.com/deepsweet/istanbul-instrumenter-loader
*/
// NOTE: Currently breaks with Webpack >=2
export = function istanbul(include?, exclude?: Array<string>) {
export = function istanbul({include = undefined, exclude = undefined}:{include?, exclude?}) {
return function istanbul(this: WebpackConfig): WebpackConfig {
return {
module: {
Expand Down

0 comments on commit c5c652e

Please sign in to comment.