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: dev
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

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

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.

None yet

2 participants