Skip to content

Error: Invalid regular expression #12

Description

@RedHatter

Single line directives capture the comment ending token as part of the expression.

/* #if process.env.TARGET === 'chrome' */
Error: Invalid regular expression: missing / in expression "process.env.TARGET === 'chrome' */"

For languages such as css that don't have single line comments this means that directions must be two lines.

/* #if process.env.TARGET === 'chrome'
*/

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions