You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This breaks pure ESM parsing of the ESM build. I'm not sure what a conventional solution would look like, but assume there ought to be an 'abstract' identifier path which would resolve by parsing package.json depending on environment?
The text was updated successfully, but these errors were encountered:
@maxgurewitz the closed source project I was using that depended on htmlparser2 (via linkedom) uses a custom JavaScript parser, so the issue was worked around there. I know various open source bundlers and runtime hacks allow inter-operating CJS & ESM, but I couldn’t recommend a generic solution.
Parser.ts
hardcodes an import identifier pointing to the CJS build ofentities
:htmlparser2/src/Parser.ts
Line 2 in b3ce38c
This breaks pure ESM parsing of the ESM build. I'm not sure what a conventional solution would look like, but assume there ought to be an 'abstract' identifier path which would resolve by parsing
package.json
depending on environment?The text was updated successfully, but these errors were encountered: