Closed TimDaub closed 3 years ago
Hiya @TimDaub - looks like we need to add Package Exports to this module.
related: #181
Late to the party here, but looks like package exports were added just about a year ago now. Anything planned before a release, as I imagine exports
will need a major?
Don't mean to pester, but with Node 10 being officially EOL and "type": "module"
being supported from v12+, I imagine we're going to see an uptick in ESM usage here. I'm starting to switch some of my things over and I've seen a few authors are switching over to ESM-only, so I imagine more people will start running into this shortly.
This should be fixed as of version 3.1.0.
👋🏼
And my project is using ESM
import { html } from "htm/preact";
. When I try to run this, I get the following error:I know that it I can resolve it myself by passing
--experimental-specifier-resolution=node
to node, but I'd rather not do that.This works as a way of resolve it too. But is it safe for the future?