Closed halvaradop closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
auth-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 18, 2024 9:52pm |
@halvaradop is attempting to deploy a commit to the authjs Team on Vercel.
A member of the Team first needs to authorize it.
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@actions/github@6.0.0, npm/@auth/solid-start@0.13.0, npm/@solidjs/meta@0.28.7, npm/@solidjs/router@0.6.0, npm/@types/node@20.11.15, npm/autoprefixer@10.4.20, npm/broken-link-checker@0.7.8, npm/postcss@8.4.44, npm/solid-js@1.8.22, npm/solid-start-node@0.2.32, npm/solid-start-vercel@0.2.32, npm/solid-start@0.2.32, npm/tailwindcss@3.4.10, npm/tsup@8.0.1, npm/tsx@4.7.0, npm/typescript@5.2.2, npm/typescript@5.3.3, npm/vite@3.2.10, npm/zod@3.23.8
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 69.07%. Comparing base (
a7491dc
) to head (3064c8f
). Report is 5 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks, but this is intentional! Together with the .d.ts.map
files, this let's developers jump straight to the real source code from their editor.
☕️ Reasoning
This pull request aims to reduce the bundle size of the
@auth/core
package. I noticed that the package size is larger than necessary due to the inclusion of.ts
files in the build process. These files are compiled into.d.ts
,.js
, and.d.ts.map
files, which already contain the codebase, leading to duplication and increased package size.While including
.ts
files can help users understand the code structure when navigating through files, it can also make contributing to the package more cumbersome due to the increased size and clutter in the IDE.Here are the key points regarding the changes:
Current Bundle Size:
Bundle Size After Removing .ts Files:
Dry Run Comparison
Now, the difference in size executing
pnpm publish --dry-run --no-git-checks
is shown in the images below:Now
After
These changes not only improve the size of the package but also enhance the organization of compiled files. Although this pull request primarily focuses on the @auth/core package, the intent is to implement similar optimizations across all packages supported by Auth.js.
I would like to discuss this approach further, as I believe it will benefit contributors and users alike.
🧢 Checklist
🎫 Affected issues
📌 Resources