-
Notifications
You must be signed in to change notification settings - Fork 405
fix(cli): update esbuild #2187
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(cli): update esbuild #2187
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
Thanks for digging into this. Let's wait for the fix from the esbuild side. Meanwhile, do you use this extractor on production? I want to gather more real-life feedback about it. Would appreciate if you share your experience, what was good or bad, what configuration you might want to change, etc. |
I don't, no. I didn't really know about it until I started investigating for this version bump 😅 I see now that it's mentioned on a couple of pages in the docs (and a blogpost), but not on the CLI reference. At my employer's we typically split smaller collections of routes in completely separate apps. Multi-page, but multi-app, if you will. So our translation file sizes have been manageable with the current extractor. Still, I might give the experimental one a go now that I know about it. |
The regression with source maps got patched in |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2187 +/- ##
==========================================
- Coverage 77.05% 76.79% -0.27%
==========================================
Files 84 88 +4
Lines 2157 2486 +329
Branches 555 647 +92
==========================================
+ Hits 1662 1909 +247
- Misses 382 462 +80
- Partials 113 115 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@andrii-bodnar this PR is approved |
Description
Opening this PR as a draft to track a fix for #2181
It seems the CLI is affected by evanw/esbuild#4070
The source map at
babel.ts
with earlier versions ofesbuild
includes the path, but at0.25.0
it only includes the file name. This breaks the mapping from the built bundle to the source in the experimental extractor, leading to the wrong file name in the extracted.po
files.js-lingui/packages/cli/src/api/extractors/babel.ts
Lines 53 to 55 in d36c323
Types of changes
Fixes #2181
Checklist