Files (1063)
scripts/repro/template-literal-matrix/README.md
GitHubTemplate Literal Reproduction Matrix
This harness checks how common tools lower template literals and tagged templates, then runs wakaru on the lowered output. Babel is tested across meaningful transform-plugin versions and loose/spec-style modes where supported.
The matrix also includes standalone Terser rows and Babel/TypeScript/SWC/esbuild output minified through Terser, because template helper shapes can change again after compiler output is minified.
It is for investigation, not as a committed snapshot source. Use it to find reproduced tool shapes worth minimizing into focused Rust unit tests.
node scripts/repro/template-literal-matrix/matrix.mjs
Add --details to print full lowered and recovered code for missed cases.
Add --level minimal, --level standard, or --level aggressive to run
wakaru with a specific rewrite level.
Rows are grouped by distinct lowered output per snippet. The grouping key only normalizes CRLF to LF and trims leading/trailing whitespace, so exact helper shape is still preserved while duplicate tool outputs are collapsed.
By default the script uses target/debug/wakaru(.exe) when present, otherwise
it falls back to cargo run -q -p wakaru-cli --. Set WAKARU to test a
specific binary.
The transformer packages are installed under target/repro-tools/, so the
first run may download Babel, SWC, TypeScript, esbuild, or Terser packages. The
target/ directory is ignored by git.