Skip to content

Commit 4caa88c

Browse files
Merge pull request #210 from davidbailey00/patch-1
Improve support for modern ESM build tools
2 parents bfba80e + ca0340a commit 4caa88c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Diff for: 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;

Diff for: package.json

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

0 commit comments

Comments
 (0)