diff --git a/esm/index.mjs b/esm/index.mjs index 147e38e5..572a9d98 100644 --- a/esm/index.mjs +++ b/esm/index.mjs @@ -1,5 +1,13 @@ import HTMLReactParser from '../lib/index.js'; -export * from '../lib/index.js'; +export { + Comment, + Element, + ProcessingInstruction, + Text, + attributesToProps, + domToReact, + htmlToDOM, +} from '../lib/index.js'; export default HTMLReactParser.default || HTMLReactParser; diff --git a/esm/utilities.mjs b/esm/utilities.mjs index c8b878fd..281cb293 100644 --- a/esm/utilities.mjs +++ b/esm/utilities.mjs @@ -1 +1,8 @@ -export * from '../lib/utilities.js'; +export { + isCustomComponent, + setStyleProp, + PRESERVE_CUSTOM_ATTRIBUTES, + ELEMENTS_WITH_NO_TEXT_CHILDREN, + canTextBeChildOfNode, + returnFirstArg, +} from '../lib/utilities.js';