Skip to content

Toast breaks if svelte config compilerOptions are used #4267

@adamdva

Description

@adamdva

Current Behavior

in svelte.config.js if we enable:
compilerOptions: { preserveComments: true, preserveWhitespace: true, },

skeleton Toasts no longer are displayed.

Expected Behavior

Toasts should still be added to the Dom

Steps To Reproduce

  1. in svelte.config.js enable:
    compilerOptions: { preserveComments: true, preserveWhitespace: true, },
  2. Toasts no longer are added to the Dom

Stackblitz or Reproduction URL

No response

Environment Information

System: Windows 11
"vite": "^7.3.1",
"svelte": "^5.46.4",
"@skeletonlabs/skeleton": "^4.9.0",
"@skeletonlabs/skeleton-svelte": "^4.9.0",
node: v24.10.0
pnpm: v10.27.0

More Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions