The spec does not clarify whether other contents can be contained in the notation comments.
| 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.