developit / microbundle

📦 Zero-configuration bundler for tiny modules.
https://npm.im/microbundle
MIT License
8.03k stars 362 forks source link

fix: mains by format fallbacks #964

Closed rschristian closed 2 years ago

rschristian commented 2 years ago

Fixes #963

Typo was from https://github.com/developit/microbundle/pull/950

We were missing tests for controlling the output filenames from package.json nearly entirely, both the common fields ("main", "module", etc.) and their alts ("cjs:main", "esmodule", etc.). This adds a test suite for both (though there's still a few untested fields, like nested "exports" and "syntax.esmodule" entry).

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: a624894771419efd18a0f9eda2997f0f648adcd4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------- | ----- | | microbundle | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR