Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

isuvorov
Copy link
Contributor

@isuvorov isuvorov commented Dec 1, 2023

The problem:

Description:
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 with outExtension results.

Copy link

codesandbox bot commented Dec 1, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Dec 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tsup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 1, 2023 4:48pm

timdorr added a commit to reduxjs/redux that referenced this pull request Mar 20, 2024
Waiting on egoist/tsup#1053 to revert back to .d.ts extension
@aryaemami59
Copy link
Contributor

Is there anything we can do to help facilitate this change?

@ndelangen
Copy link

I tried upgrading storybook's monorepo to TSup 8 and it failed, and it's likely this would allow us to upgrade.

@sxzz sxzz force-pushed the dev branch 2 times, most recently from 115a451 to 57654f6 Compare July 16, 2024 21:02
@wataruian
Copy link

Hi! Any plans to deploy this? Would greatly help the need to customize dts file ext. Thanks!

@Lonli-Lokli
Copy link

@sxzz Could you please review & merge it?

@sxzz sxzz deleted the branch egoist:main September 17, 2024 05:23
@sxzz sxzz closed this Sep 17, 2024
@sxzz sxzz reopened this Sep 17, 2024
@sxzz sxzz changed the base branch from dev to main September 17, 2024 05:39
@rtritto
Copy link

rtritto commented Oct 12, 2024

Hi, any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants