## Expected Behavior html-react-parser to resolve correctly when using TypeScript with `moduleResolution` set to `node16` or `nodenext` (effectively: in pure ESM environment). ## Actual Behavior html-react-parser is not resolved correctly: https://arethetypeswrong.github.io/?p=html-react-parser%405.1.2 This also causes the types to be non-functional in VSCode: <img width="331" alt="image" src="https://github.com/remarkablemark/html-react-parser/assets/5426427/c691457f-5e82-44e2-adae-7f8649ffb7ec"> ## Steps to Reproduce Create a project using TypeScript with `moduleResolution` set to `node16` or `nodenext`. Create a file with the following content: ```ts import parse from 'html-react-parser'; ``` you'll already see, when you hover over `parse` bit, that types are not loaded correctly. ## Reproducible Demo <!-- Creating a bug demo will help speed up the process of resolving the issue: * CodeSandbox: https://codesandbox.io/s/940pov1l4w * JSFiddle: https://jsfiddle.net/remarkablemark/7v86d800/ * Replit: https://replit.com/@remarkablemark/html-react-parser --> ## Environment - Version: 5.0.7 - Platform: Node.js - Browser: not applicable - OS: macOS Sonoma 14.2.1 ## Keywords Relates to https://github.com/remarkablemark/html-dom-parser/issues/669