Skip to content

Commit bad1e4c

Browse files
committedOct 30, 2023
fix(esm): support vite bundler
Fixes #1132
1 parent 0b70d89 commit bad1e4c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎esm/attributes-to-props.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import attributesToProps from '../lib/attributes-to-props.js';
22

3-
export default attributesToProps.default;
3+
export default attributesToProps.default || attributesToProps;

‎esm/dom-to-react.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import domToReact from '../lib/dom-to-react.js';
22

3-
export default domToReact.default;
3+
export default domToReact.default || domToReact;

‎esm/index.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ export {
1010
htmlToDOM,
1111
} from '../lib/index.js';
1212

13-
export default HTMLReactParser.default;
13+
export default HTMLReactParser.default || HTMLReactParser;

0 commit comments

Comments
 (0)
Please sign in to comment.