Closed 94726 closed 3 months ago
https://github.com/unjs/nitro/issues/2512
This adds the default field to each subpath export, so that these are correctly resolved by jiti, when used in modules.
default
Alternatively, nitro could export cjs builds, if that is preferred.
Thanks for PR but i don't think this is the right solution.
jiti has an esmResolve option that enables esm compatibility. We need to add it here feel free to make a PR for this ๐๐ผ
esmResolve
๐ Linked issue
https://github.com/unjs/nitro/issues/2512
โ Type of change
๐ Description
This adds the
default
field to each subpath export, so that these are correctly resolved by jiti, when used in modules.Alternatively, nitro could export cjs builds, if that is preferred.
๐ Checklist