Open isuvorov opened 7 months ago
Open the branch in Web Editor • VS Code • Insiders
Open Preview
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 |
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.
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 withoutExtension
results.