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" } ] 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;