Skip to content

fix(svelte): use import type for CssVars - #76

Merged
catalinpit merged 1 commit into
documenso:mainfrom
mstjr:fix-svelte
Aug 6, 2026
Merged

fix(svelte): use import type for CssVars#76
catalinpit merged 1 commit into
documenso:mainfrom
mstjr:fix-svelte

Conversation

@mstjr

@mstjr mstjr commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

CssVars is a type-only import in the Svelte components, but it was being imported with a regular import. This can cause issues with Svelte/Vite builds when the identifier is erased at runtime but the bundler still treats it as a value import.

Changed all Svelte component files to import CssVars using import type:

  • create-document.svelte
  • create-envelope.svelte
  • create-template.svelte
  • direct-template.svelte
  • multisign-document.svelte
  • sign-document.svelte
  • update-document.svelte
  • update-envelope.svelte
  • update-template.svelte

No runtime behavior is changed, this is a TypeScript/import-correctness fix, before we would have to create a patch for it to work.

@ElTimuro

ElTimuro commented Aug 5, 2026

Copy link
Copy Markdown
Member

bumping this for internal review

@catalinpit catalinpit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks!

@catalinpit
catalinpit merged commit 6dfc5f6 into documenso:main Aug 6, 2026
4 checks passed
@mstjr
mstjr deleted the fix-svelte branch August 6, 2026 16:28
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.

3 participants