Skip to content

ESM build attempts to import CJS build modules from 'entities' #1782

@barneycarroll

Description

@barneycarroll

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions