-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hi! I'm trying to use this package as a transitive dependency in Deno via esm.sh. Unfortunately sanitize is not a proper named export. I can't change the way this package is imported (e.g. import * as dompurify from "...") because it's a transitive dependency. What do you think about providing support for ESM natively?
I see that isomorphic-unfetch uses Node's conditional exports and provides separate browser, .cjs and .mjs implementations. Maybe this could be done from a single source file and a tool like rollup to cross-build .cjs and .mjs formats.
dargmuesli, YozhEzhi, jarrodek and GuillaumeNury
Metadata
Metadata
Assignees
Labels
No labels