Parser.ts hardcodes an import identifier pointing to the CJS build of entities:
|
import { fromCodePoint } from "entities/lib/decode.js"; |
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?
Parser.tshardcodes 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.jsondepending on environment?