From a2cf6c6a3e11c16086c095b11ebbfed13572ddd4 Mon Sep 17 00:00:00 2001 From: Joshua Wiens Date: Sat, 22 Jul 2017 15:00:33 -0500 Subject: [PATCH] fix: Strip deprecation warning (#58) --- index.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/index.js b/index.js index 44fb2ba..ea4f387 100644 --- a/index.js +++ b/index.js @@ -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}`; }