From 095b6a20b8a7dc666a59c7f95d8431ebf1f4fd5b Mon Sep 17 00:00:00 2001 From: AlbertAZ1992 Date: Thu, 26 May 2022 10:27:36 +0800 Subject: [PATCH 1/2] fix: export domhandler' Element --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3830dfbc..500ec80d 100644 --- a/index.js +++ b/index.js @@ -36,7 +36,7 @@ function HTMLReactParser(html, options) { HTMLReactParser.domToReact = domToReact; HTMLReactParser.htmlToDOM = htmlToDOM; HTMLReactParser.attributesToProps = attributesToProps; -HTMLReactParser.Element = require('domhandler/lib/node').Element; +HTMLReactParser.Element = require('domhandler').Element; // support CommonJS and ES Modules module.exports = HTMLReactParser; From 054ffea92c57bd5be261e0101626f4b0065008ff Mon Sep 17 00:00:00 2001 From: AlbertAZ1992 Date: Thu, 26 May 2022 14:13:31 +0800 Subject: [PATCH 2/2] chore: update size-limit --- .size-limit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.size-limit.json b/.size-limit.json index a79acd66..6f678366 100644 --- a/.size-limit.json +++ b/.size-limit.json @@ -1,6 +1,6 @@ [ { "path": "dist/html-react-parser.min.js", - "limit": "9.73 KB" + "limit": "10.52 KB" } ]