-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
chore!: switch to tsup #2391
chore!: switch to tsup #2391
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #2391 +/- ##
==========================================
- Coverage 99.56% 99.55% -0.01%
==========================================
Files 2817 2817
Lines 251199 251199
Branches 1129 1125 -4
==========================================
- Hits 250101 250088 -13
- Misses 1069 1111 +42
+ Partials 29 0 -29 |
Mind giving some details what/why files/data are now missing? |
5445afe
to
6656a27
Compare
I was hoping you'd want to check out the PR and discover it for yourself, but okay, I can spoil it for you: As you can already see in the Lines 31 to 53 in 5445afe
the The other changes comes from (🥁): tsup supports splitting for cjs 🎉 |
Well, not only does tsup support splitting, but also chunking (Hence the reduced number of files for cjs). So for cjs users it is no longer possible to import directly from |
// chunking == splitting
No! Anything not defined in |
6656a27
to
615fe43
Compare
while its not supported, its still a breaking change, so i think it should land in 9.0 |
bc2d845
to
cae028f
Compare
I checked if it is viable to ship // With sourcemaps:
22.0 MiB (23,026,364)
580 files, 610 sub-folders
// Without sourcemaps:
10.0 MiB (10,437,487)
290 files, 610 sub-folders 12 MiB is NOT worth it 😬 |
c9cb656
to
56fe090
Compare
56fe090
to
8770f4c
Compare
3b8fa6d
to
a4db91a
Compare
@ST-DDT already approved a week ago and only a rebase were done since then |
This PR switches the build process from using
esbuild
nativly totsup
(which usesesbuild
under the hood).It simplifies the config and prepares for easier migration later to
esm
(see #2261)And even better! It magically reduces the
dist
folder content: