Skip to content

Typescript in template code #378

@redmagic

Description

@redmagic

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 transpiled

Expected behavior
The operator should be transpiled like here: https://www.typescriptlang.org/play?target=2#code/MYewdgziA2CmB00QHMAUBXMATWAzAlmLFgAQD8ZJATAJRA

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions