Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Unterminated regular expression with less or equal operator #68

Closed
@hinaloe

Description

@hinaloe

I have not confirmed if this package is the cause, but when I use the <= operator in <script setup>, the build fails with SyntaxError: Unterminated regular expression.

This can be reproduced, for example, by adding the following sfc to the snapshot test of Jest:

<template>
  <div>{{ bool }}</div>
</template>

<script setup>
const bool = 7 <= 7
</script>

Of course, the following will work fine:

<template>
  <div>{{ bool }}</div>
</template>

<script setup>
const bool = 7 < 7
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions