Skip to content

Commit 9112250

Browse files
fix(index): refactor ES module from ES6 to ES5 syntax
Fixes #222 Do not use object destructuring assignment in `index.mjs` since it's not supported by older browsers like Internet Explorer 11.
1 parent 04bb88e commit 9112250

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import HTMLReactParser from './index.js';
22

3+
export var domToReact = HTMLReactParser.domToReact;
4+
export var htmlToDOM = HTMLReactParser.htmlToDOM;
5+
export var attributesToProps = HTMLReactParser.attributesToProps;
6+
37
export default HTMLReactParser;
4-
export var { domToReact, htmlToDOM, attributesToProps } = HTMLReactParser;

0 commit comments

Comments
 (0)