Closed kripod closed 10 months ago
I believe this is already fixed with the latest unbuild upgrade - fontaine just needs to be rebuilt + published.
Yes - looks good now: https://arethetypeswrong.github.io/?p=fontaine.
Oh - and thank you very much for spotting the issue and opening the PR ❤️
While importing 'fontaine' from an ES module context (either a '.mjs' file or a '.js' file when
type: "module"
is present within the consumer’s package.json file), type declarations for 'node_modules/fontaine/dist/index.mjs' can’t be resolved.By adding a
"types"
conditional export explicitly, TypeScript projects would be able to resolve the type declarations of fontaine whenmoduleResolution: "Bundler"
is specified within TSConfig.