Skip to content

Commit 97b138d

Browse files
Merge pull request #565 from AlbertAZ1992/fix/export-domhandler
fix: export domhandler' Element from it's exports field
2 parents 826c827 + 054ffea commit 97b138d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.size-limit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
33
"path": "dist/html-react-parser.min.js",
4-
"limit": "9.73 KB"
4+
"limit": "10.52 KB"
55
}
66
]

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function HTMLReactParser(html, options) {
3636
HTMLReactParser.domToReact = domToReact;
3737
HTMLReactParser.htmlToDOM = htmlToDOM;
3838
HTMLReactParser.attributesToProps = attributesToProps;
39-
HTMLReactParser.Element = require('domhandler/lib/node').Element;
39+
HTMLReactParser.Element = require('domhandler').Element;
4040

4141
// support CommonJS and ES Modules
4242
module.exports = HTMLReactParser;

0 commit comments

Comments
 (0)