Skip to content

Commit ca0340a

Browse files
author
David Bailey
committed
feat(package): add es module entry point
1 parent bfba80e commit ca0340a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

index.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import HTMLReactParser from './index.js';
2+
3+
export default HTMLReactParser;
4+
export const { domToReact, htmlToDOM, attributesToProps } = HTMLReactParser;

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "HTML to React parser.",
55
"author": "Mark <[email protected]>",
66
"main": "index.js",
7+
"module": "index.mjs",
78
"scripts": {
89
"benchmark": "node benchmark",
910
"build": "rollup --config",

0 commit comments

Comments
 (0)