We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03747b8 commit 1d9ab19Copy full SHA for 1d9ab19
index.js
@@ -2,6 +2,10 @@ var domToReact = require('./lib/dom-to-react');
2
var attributesToProps = require('./lib/attributes-to-props');
3
var htmlToDOM = require('html-dom-parser');
4
5
+// support backwards compatibility for ES Module
6
+htmlToDOM =
7
+ typeof htmlToDOM.default === 'function' ? htmlToDOM.default : htmlToDOM;
8
+
9
var domParserOptions = { lowerCaseAttributeNames: false };
10
11
/**
0 commit comments