-
-
Notifications
You must be signed in to change notification settings - Fork 221
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: outExtension for generating dts files by rollup #1053
base: main
Are you sure you want to change the base?
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Waiting on egoist/tsup#1053 to revert back to .d.ts extension
Is there anything we can do to help facilitate this change? |
I tried upgrading storybook's monorepo to TSup 8 and it failed, and it's likely this would allow us to upgrade. |
115a451
to
57654f6
Compare
Hi! Any plans to deploy this? Would greatly help the need to customize dts file ext. Thanks! |
@sxzz Could you please review & merge it? |
Hi, any update? |
The problem:
outExtension
for generated dts files? #939Description:
Rollup operates in a Node.js Worker threads and can only receive messages as plain objects (without functions). In
tsup.config
, outExtension is a function. Therefore if we send the config "as is", we encounter a DataCloneError.Solution:
Execute
outExtension
before sending message to rollup worker thread and send the array withoutExtension
results.