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

Commit a2cf6c6

Browse files
authoredJul 22, 2017
fix: Strip deprecation warning (#58)
1 parent 525b28f commit a2cf6c6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed
 

‎index.js

-8
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,5 @@ module.exports = function (source) {
77
.replace(/\u2028/g, '\\u2028')
88
.replace(/\u2029/g, '\\u2029');
99

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

0 commit comments

Comments
 (0)
This repository has been archived.