Skip to content

Error: Invalid regular expression #12

@RedHatter

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'
*/

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