mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
fa342a0067
swc_ecma_minifier: - Don't optimize `1 / t == -1 / 0` as `!1`. - Don't optimize `e === -1 / 0` as false. - Don't inline string literals in arguments, if it's used multiple time. (https://github.com/vercel/next.js/issues/31291)
15 lines
351 B
Bash
Executable File
15 lines
351 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
# Usage: Invoke this script using full path from a next app.
|
|
|
|
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
|
|
export NEXT_DEBUG_MINIFY=1
|
|
|
|
# Remove preovious builds
|
|
rm -rf .next
|
|
|
|
|
|
npx next build | grep '{ name:' | node "$SCRIPT_DIR/evaluate.js"
|
|
touch "$SCRIPT_DIR/../../tests/compress.rs" |