mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
9 lines
214 B
Bash
9 lines
214 B
Bash
|
#!/usr/bin/env bash
|
||
|
#
|
||
|
# Generates reference output for the mangler, using terser
|
||
|
#
|
||
|
set -eu
|
||
|
|
||
|
output="${1/input/output.mangleOnly}"
|
||
|
npx terser --mangle --toplevel --output "$output" $1
|
||
|
npx prettier --write "$output"
|