Skip to content

Commit

Permalink
feat(index): add -loader suffix
Browse files Browse the repository at this point in the history
done in preparation for webpack/webpack#3102
  • Loading branch information
niieani committed Nov 8, 2016
1 parent 7b544a6 commit c4bb59d
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 @@ -11,7 +11,7 @@ export = function json({exclude = null} = {}) {
module: {
rules: get(this, 'module.rules', []).concat([{
test: /\.json$/i,
loader: 'json',
loader: 'json-loader',
exclude: exclude || (this.metadata.root ? [path.join(this.metadata.root, 'node_modules')] : []),
}])
}
Expand Down

0 comments on commit c4bb59d

Please sign in to comment.