Skip to content

Compiler options runes: true should only affects the user components as defined in src #11523

@jeannemas

Description

@jeannemas

Describe the bug

Currently (at least, until 5.0.0-next.125), when we set runes: true inside of svelte.config.js, all the components inside our app (including the ones packaged from external libraries) are forced into runes mode.

However this has the side effect of preventing the use of slighly older libraries that might not have native runes support, one such example is sveltekit-superforms.

My question is should the compiler options runes: trues only affects user components as defined in src? If not, the docs should clearly state that it also affects the third party ones.

See the reproduction link bellow for an example.

Reproduction

https://stackblitz.com/edit/sveltejs-kit-template-default-tqyv6t

Logs

No response

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    svelte: ^5.0.0-next.125 => 5.0.0-next.125

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions