You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which isn't valid Marko - it needs to be a block scriptlet OR have the assignment wrapped in braces, otherwise the html-js parser will fail to parse it.
Ideally, we would wrap the rhs of the assignment in braces, but we don't have the full babel AST here, so we can't do that. Instead, we wrap the entire scriptlet in a block.
The following scriptlet breaks when it's printed
Breaks into:
Which isn't valid Marko - it needs to be a block scriptlet OR have the assignment wrapped in braces, otherwise the html-js parser will fail to parse it.
Ideally, we would wrap the rhs of the assignment in braces, but we don't have the full babel AST here, so we can't do that. Instead, we wrap the entire scriptlet in a block.
In a perfect world we could format it in the same way that
prettier-plugin-marko
formats it:The text was updated successfully, but these errors were encountered: