Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
fix: Strip deprecation warning (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens committed Jul 22, 2017
1 parent 525b28f commit a2cf6c6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,5 @@ module.exports = function (source) {
.replace(/\u2028/g, '\\u2028')
.replace(/\u2029/g, '\\u2029');

if (this.version && this.version >= 2) {
this.emitWarning(`⚠️ JSON Loader\n
It seems you're using webpack >= v2.0.0, which includes native support for JSON.
Please remove this loader from webpack.config.js as it isn't needed anymore and
is deprecated. See the v1.0.0 -> v2.0.0 migration guide for more information
(https://webpack.js.org/guides/migrating/#json-loader-is-not-required-anymore)\n`)
}

return `module.exports = ${value}`;
}

0 comments on commit a2cf6c6

Please sign in to comment.