Skip to content

Commit

Permalink
feat: 删除无用注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackgan3 committed Nov 20, 2024
1 parent 3a73e53 commit bdbe6e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/webpack-plugin/lib/react/processJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ module.exports = function (jsonContent, {
if (!jsonContent) {
return callback()
}
// 由于json需要提前读取在template处理中使用,src的场景已经在loader中处理了,此处无需考虑json.src的场景
try {
jsonObj = JSON5.parse(jsonContent)
// 处理runner
Expand Down
1 change: 0 additions & 1 deletion packages/webpack-plugin/lib/web/processJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ module.exports = function (jsonContent, {
if (!jsonContent) {
return callback()
}
// 由于json需要提前读取在template处理中使用,src的场景已经在loader中处理了,此处无需考虑json.src的场景
try {
jsonObj = JSON5.parse(jsonContent)
// 处理runner
Expand Down

0 comments on commit bdbe6e5

Please sign in to comment.