We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug I am using a nullish coalescing operator in template code, like so <span>{$someStore.someProperty ?? ''}</span>
<span>{$someStore.someProperty ?? ''}</span>
Logs Nothing special is logged
To Reproduce Clone from https://github.com/redmagic/transpile-template-code npm i npm start Inspect file dist/main.js and search for "123", here you can see the ?? is not transpiled
npm i
npm start
??
Expected behavior The operator should be transpiled like here: https://www.typescriptlang.org/play?target=2#code/MYewdgziA2CmB00QHMAUBXMATWAzAlmLFgAQD8ZJATAJRA
The text was updated successfully, but these errors were encountered:
Hey @redmagic 👋
Currently using typescript in expressions inside your markup is not supported. This is kind of being discussed on: #318.
I've added a note about this on the TypeScript limitations section: https://github.com/sveltejs/svelte-preprocess/blob/main/docs/preprocessing.md#typescript---limitations
Sorry, something went wrong.
Hi there!
Thanks for your quick reply, I'll keep an eye on that disscussion, closing this.
No branches or pull requests
Describe the bug
I am using a nullish coalescing operator in template code, like so
<span>{$someStore.someProperty ?? ''}</span>
Logs
Nothing special is logged
To Reproduce
Clone from https://github.com/redmagic/transpile-template-code
npm i
npm start
Inspect file dist/main.js and search for "123", here you can see the
??
is not transpiledExpected behavior
The operator should be transpiled like here: https://www.typescriptlang.org/play?target=2#code/MYewdgziA2CmB00QHMAUBXMATWAzAlmLFgAQD8ZJATAJRA
The text was updated successfully, but these errors were encountered: