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

[Feature] - Support Svelte 5 Runes Mode #1196

Open
timephy opened this issue Nov 9, 2024 · 0 comments
Open

[Feature] - Support Svelte 5 Runes Mode #1196

timephy opened this issue Nov 9, 2024 · 0 comments

Comments

@timephy
Copy link

timephy commented Nov 9, 2024

Is your feature request related to a problem? Please describe.

I like to use Svelte 5, to make sure I use the new Svelte 5 syntax everywhere I want to enable compilerOptions.runes: true.
However, when doing this I run into the following error:

✘ [ERROR] node_modules/.pnpm/[email protected][email protected]/node_modules/svelte-awesome/package/components/Icon.svelte:12:6 Cannot use `$$restProps` in runes mode [plugin vite-plugin-svelte:optimize-svelte]

    node_modules/.pnpm/[email protected][email protected]/node_modules/svelte-awesome/package/components/Icon.svelte:12:6:
      12 │  {...$$restProps}
         ╵       ^

  The plugin "vite-plugin-svelte:optimize-svelte" was triggered by this import

    node_modules/.pnpm/[email protected][email protected]/node_modules/svelte-awesome/package/index.js:1:35:
      1 │ export { default as default } from './components/Icon.svelte';

It's clear why this happens, as Icon.svelte is using the old export let syntax.

Describe the solution you'd like

I'd like to see this updated, as I like it a lot and want to continue using it moving forward.

Describe alternatives you've considered

Omitting compilerOptions.runes, however we should all adapt to the new syntax...

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

No branches or pull requests

1 participant