Skip to content

fix: Vite 8/Rolldown build warnings in library packages#22205

Open
parshipcy wants to merge 2 commits into
twentyhq:mainfrom
parshipcy:fix/build-warnings-vite8
Open

fix: Vite 8/Rolldown build warnings in library packages#22205
parshipcy wants to merge 2 commits into
twentyhq:mainfrom
parshipcy:fix/build-warnings-vite8

Conversation

@parshipcy

@parshipcy parshipcy commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Clean up Vite 8/Rolldown build warnings that showed up during yarn start:

  • twenty-client-sdk: relativeImportPath.ts now imports node:path, so the generate bundle treats it as a Node external instead of stubbing it for the browser.
  • Remove rollup’s interop: 'auto' from CJS output options - Rolldown don’t support it and was showing Invalid key: Expected never but received "interop".
  • Replaced deprecated inlineDynamicImports: true with codeSplitting: false in the worker config.

References:

Review in cubic

Signed-off-by: Parship Chowdhury <parshipchowdhury@gmail.com>
@twenty-ci-bot-public

Copy link
Copy Markdown

👋 Thanks for contributing to Twenty!

Your PR has been set to draft while you work on it. Once you're done, mark it as Ready for review and our automated checks will run.

Looking forward to your contribution!

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 8 files

Re-trigger cubic

@twenty-ci-bot-public

twenty-ci-bot-public Bot commented Jun 26, 2026

Copy link
Copy Markdown

🔍 Visual Regression Review — twenty-ui

⚠️ The Argos build errored — visual review could not run. A manual visual check is recommended (not blocking).

Changed: 0 · Added: 0 · Removed: 0


View run details · advisory mode

Comment on lines -1 to -4
// @ts-expect-error: no type declarations for path in this config
import path from 'path';
import { defineConfig } from 'vite';
// @ts-expect-error: importing JSON without resolveJsonModule

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@twenty-ci-bot-public

Copy link
Copy Markdown

🔍 Automated Pre-Review

No issues detected - This PR is ready for human review.


🧭 External PR Quality Review

🟠 Needs triage for the following reason(s):

  • Not associated with an existing issue (required for external PRs)

cc @prastoin

Checks

  • CI: pending

Detailed findings (duplicate candidates, standards notes, summary) are in the workflow run logs.


View details

Automated pre-review — human approval still required.

@twenty-ci-bot-public

Copy link
Copy Markdown

🔍 Visual Regression Review — twenty-front

✅ 3 visual change(s) reviewed — all explained by this PR.

Changed: 3 · Added: 0 · Removed: 0 · Unchanged: 696

3 item(s) to double-check (uncertain / low confidence)
Story Verdict Confidence Explained by
🟡 modules-settings-accounts-blocklist-settingsaccountsblocklistinput--default uncertain 75% No UI files changed — PR only modifies Vite build config files (twenty-ui/vite.c…
🟡 modules-settings-accounts-blocklist-settingsaccountsblocklistsection--default uncertain 75% No UI files changed — PR only modifies Vite build config files and a path utilit…
🟡 modules-auth-signinupworkspaceactivationv2--default uncertain 80% No UI files changed — PR only modifies Vite build config files and a path utilit…
Changed stories
Story Diff %
modules-settings-accounts-blocklist-settingsaccountsblocklistinput--default 1%
modules-settings-accounts-blocklist-settingsaccountsblocklistsection--default 1%
modules-auth-signinupworkspaceactivationv2--default 1%

View run details · advisory mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant