feat: implement phase 5 bun_bundle bootstrap

This commit is contained in:
Eric
2026-03-04 03:30:07 +00:00
parent e8bddcb5ee
commit 5fea7d058e
7 changed files with 164 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
bundle="$1"
minified="$2"
bundle_size="$(wc -c < "${bundle}")"
minified_size="$(wc -c < "${minified}")"
if (( minified_size >= bundle_size )); then
echo "Expected minified bundle (${minified_size}) to be smaller than regular bundle (${bundle_size})" >&2
exit 1
fi