From bdbe6e5fd07fc5f27fe9b42ceb0c96d9c5b38890 Mon Sep 17 00:00:00 2001 From: xuegan Date: Wed, 20 Nov 2024 21:36:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/webpack-plugin/lib/react/processJSON.js | 1 - packages/webpack-plugin/lib/web/processJSON.js | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/webpack-plugin/lib/react/processJSON.js b/packages/webpack-plugin/lib/react/processJSON.js index 3b7a57653..1f8fcbf2a 100644 --- a/packages/webpack-plugin/lib/react/processJSON.js +++ b/packages/webpack-plugin/lib/react/processJSON.js @@ -83,7 +83,6 @@ module.exports = function (jsonContent, { if (!jsonContent) { return callback() } - // 由于json需要提前读取在template处理中使用,src的场景已经在loader中处理了,此处无需考虑json.src的场景 try { jsonObj = JSON5.parse(jsonContent) // 处理runner diff --git a/packages/webpack-plugin/lib/web/processJSON.js b/packages/webpack-plugin/lib/web/processJSON.js index 5d5274a3b..49abb713b 100644 --- a/packages/webpack-plugin/lib/web/processJSON.js +++ b/packages/webpack-plugin/lib/web/processJSON.js @@ -84,7 +84,6 @@ module.exports = function (jsonContent, { if (!jsonContent) { return callback() } - // 由于json需要提前读取在template处理中使用,src的场景已经在loader中处理了,此处无需考虑json.src的场景 try { jsonObj = JSON5.parse(jsonContent) // 处理runner