Closed hyrious closed 3 years ago
Thank you so much for posting these @hyrious! Yes you are right there were some issues in the "module"
resolution which should be fixed now, please let me know if you notice any more issues.
Originally we did not support the "module"
field as that was defined later by Webpack, but I have since come around on it. The full CDN support for this field has been gradually rolling out this year. The other issue with your package was an unrelated bug actually, which I've also fixed.
It's only through posting issues that things improve, so thanks again!
Even vue3 is imported from the cjs version. Let's see its package.json:
Maybe your resolver prefers
unpkg
overmain
, but it results in almost no esm being used. Unless the module puts an esm file inunpkg
like million (package.json).Also,
exports
does not work as expected too. Take a look at this package.json: