Skip to content

Commit

Permalink
Merge pull request #210 from davidbailey00/patch-1
Browse files Browse the repository at this point in the history
Improve support for modern ESM build tools
  • Loading branch information
remarkablemark authored Jan 15, 2021
2 parents bfba80e + ca0340a commit 4caa88c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import HTMLReactParser from './index.js';

export default HTMLReactParser;
export const { domToReact, htmlToDOM, attributesToProps } = HTMLReactParser;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "HTML to React parser.",
"author": "Mark <[email protected]>",
"main": "index.js",
"module": "index.mjs",
"scripts": {
"benchmark": "node benchmark",
"build": "rollup --config",
Expand Down

0 comments on commit 4caa88c

Please sign in to comment.