Commit 43a0364
committed
feat: export lib files
This exposes the lib files, so `domToReact` can be imported without importing all of `domhandler`,
which reduces bundle size.
It also exposes `attributesToProps`, which is useful (at least in my project)
You can import like `import domToReact from 'html-react-parser/lib/dom-to-react'`1 parent 5475f2c commit 43a0364
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
0 commit comments