Skip to content

Clarify the behavior when the notation comment includes other contents #10

@sapphi-red

Description

@sapphi-red

The spec does not clarify whether other contents can be contained in the notation comments.

/* a #__PURE__ */ foo()
Input terser Rollup esbuild SWC Oxc
/* a #__PURE__ */ foo()
/* a#__PURE__ */ foo()
/* #__PURE__a */ foo()
/* #__PURE__ a */ foo()

✅: treated as notation comments
❌: not treated as notation comments

Currently, the behavior is not aligned.

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