Skip to content

Use custom expression parser instead of babel to template expression #826

Open
@pmdartus

Description

@pmdartus

Description

Currently, we are using babel to parse and validate template expressions. We used it originally to avoid having to implement a custom expression parser for now. We are seeing currently 2 types of issues with using babel.

  • The compiler throws a cryptic error message when the expression is valid javascript but isn't a valid template expression.
<template>
    <div>
        h1 { color: red }
    </div>
</template>
  • The compiler throws when using javascript keywords
<template>
    <div class={class}></div>
</template>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    developer productivityissues marked as such are intended to help developers to not trip down

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions