New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ensure filename for esm format #364
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/egoist/bili/75a3iilfn |
Codecov Report
@@ Coverage Diff @@
## master #364 +/- ##
==========================================
- Coverage 75.33% 75.21% -0.12%
==========================================
Files 11 11
Lines 454 456 +2
Branches 168 169 +1
==========================================
+ Hits 342 343 +1
- Misses 107 108 +1
Partials 5 5
Continue to review full report at Codecov.
|
src/index.ts
Outdated
.replace(/\[min\]/, minPlaceholder) | ||
// The `[ext]` placeholder no longer makes sense | ||
// Since we only output to `.js` now | ||
// Probably remove it in the future | ||
.replace(/\[ext\]/, '.js') | ||
|
||
if (rollupFormat === 'esm') { | ||
fileName = fileName.replace(/\[format\]/, '.esm') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fileName = fileName.replace(/\[format\]/, '.esm') | |
fileName = fileName.replace(/\[format\]/, 'esm') |
🎉 This PR is included in version 5.0.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fix regression for #363, closes #363