Skip to content

Commit

Permalink
fix: export domhandler' Element
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertAZ1992 committed May 26, 2022
1 parent 44c078c commit 095b6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 095b6a2

Please sign in to comment.