developit / microbundle

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

Fix/css filename output #841

Closed rschristian closed 3 years ago

rschristian commented 3 years ago

Fixes #779

I'd love to do / add some better detection here, but not sure how reasonable it is considering the current state of things. Ideally (in my mind at least) names would be chosen in a way resembling the following order:

I believe that'd make sense as a set of fallbacks, but the point is that those would be some reasonable items to use as the CSS file name.

However, besides #784 we're not currently using "exports" for any detection / output customization so it would feel weird to have CSS be the first thing to utilize that. Certainly happy to add that if it'd make sense to do so!

changeset-bot[bot] commented 3 years ago

🦋 Changeset detected

Latest commit: 6602872edec98b0655cf30baae8c76ffee22aeb9

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