Closed rschristian closed 3 years ago
Latest commit: 6602872edec98b0655cf30baae8c76ffee22aeb9
The changes in this PR will be included in the next version bump.
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
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:
".css"
key in"exports"
"exports": { "./": { default } }
"exports": { "./" }
, if it's a string"exports"
, if it's a string"main"
options.output
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!