Closed jrson83 closed 1 year ago
I will create the PR, but before releasing we should test in detail if it doesn't break anything.
That's for sure I will close If the 1KB brings uncertainty
I have released the next version ⭐ 1.6.2-beta.1⭐ Welcome to use it and let me know if there are any ISSUE ~
Awesome, thank you!
✅ Checklist
📄 System Info
🔎 Description
Concise Description
There are duplicate node modules in the monorepo, which get bundled twice on build.
Expected behavior
Each module should be bundled once.
Steps to reproduce
Tsup can generate a
metafile
for bundle analysis by adding--metafile
as flag.packages/cli/package.json
and add--metafile
to the build script.pnpm build
.esbuild
, click the button Upload assetsESBUILD.JSON
and upload the metafile frompackages/cli/lib/metafile-cjs.json
.GO TO ANALYSIS
.Screenshots or Screen Recording
Possible solution
Use pnpm overrides in package.json to get rid of the duplicate modules:
I have tested this and the bundle-size is about 1kb less after and the duplicate modules are gone:
I was hoping this helps, but after build all tests fail, cause chalk and supports-color dropped cjs support.
I will test again with the last versions with cjs support. If I find another solution I will let you know.
UPDATE:
I tested again and with the following versions, the tests run successful (added to root package.json):
🔗 Reproduction link / repo:
No response