-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
Description
Describe the bug
// we use `&&` rather than `?.` so that things like | |
// `{@attach DEV && something_dev_only()}` work | |
return fn && fn(node); |
as code show, something like this should pass ts check <div {@attach enabled && test}></div>
Reproduction
Logs
System Info
System:
OS: Windows 11 10.0.26100
CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700KF
Memory: 16.33 GB / 31.82 GB
Binaries:
Node: 22.12.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.15.1 - ~\AppData\Local\pnpm\pnpm.CMD
bun: 1.1.40 - ~\.bun\bin\bun.EXE
Browsers:
Edge: Chromium (131.0.2903.99)
Internet Explorer: 11.0.26100.1882
npmPackages:
svelte: ^5.30.1 => 5.30.1
Severity
annoyance
david-plugge and hmans