javascript-compiler-hints/compiler-notations-spec

(Draft) Specifications for `__PURE__` compiler notation et al.

TypeScript

168

14 commits

updated Jun 30, 2026

See the code

README

JavaScript Compiler Hint Notation Specifications (Draft)

These specs are in draft and looking for review/feedback. πŸ‘‰ Motivations & Discussions.

This repository contains the community specifications commonly used JavaScript compiler hint notations, including:

Motivation

JavaScript bundlers and minifiers often rely on compiler hint notations to optimize code. However, there is no clear specification for these notations, and the syntax and semantics of these notations vary across different tools. This makes it difficult for developers to understand and use these notations properly. This repository aims to provide a clear and concise specification for them and to help developers understand and use these notations properly.

Compatibility

This repo also maintains compatibility tables for these notations.

Test Cases

Spec-level conformance test cases for each notation. Each case documents the code under test and the expected detected range.

Contributors

sapphi-red

7 commits

antfu

4 commits

kdy1

1 commits

lukastaegert

1 commits

javascript-compiler-hints/compiler-notations-spec

(Draft) Specifications for `__PURE__` compiler notation et al.

TypeScript

168

14 commits

updated Jun 30, 2026

See the code

README

JavaScript Compiler Hint Notation Specifications (Draft)

These specs are in draft and looking for review/feedback. πŸ‘‰ Motivations & Discussions.

This repository contains the community specifications commonly used JavaScript compiler hint notations, including:

Motivation

JavaScript bundlers and minifiers often rely on compiler hint notations to optimize code. However, there is no clear specification for these notations, and the syntax and semantics of these notations vary across different tools. This makes it difficult for developers to understand and use these notations properly. This repository aims to provide a clear and concise specification for them and to help developers understand and use these notations properly.

Compatibility

This repo also maintains compatibility tables for these notations.

Test Cases

Spec-level conformance test cases for each notation. Each case documents the code under test and the expected detected range.

Contributors

sapphi-red

7 commits

antfu

4 commits

kdy1

1 commits

lukastaegert

1 commits

Languages

TypeScript

100.0%