File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,6 +106,16 @@ jobs:
106106 npm_name="@replanejs/${pkg_name}"
107107 fi
108108
109+ # Special handling for Svelte (unbundled, multiple JS files)
110+ if [ "$pkg_name" = "svelte" ]; then
111+ esm_size=$(cat "${dist_dir}"/*.js 2>/dev/null | wc -c | tr -d ' ')
112+ esm_gz=$(cat "${dist_dir}"/*.js 2>/dev/null | gzip -c | wc -c | tr -d ' ')
113+ if [ "$esm_size" -gt 0 ]; then
114+ echo "| ${npm_name} | ESM | $(format_bytes $esm_size) | $(format_bytes $esm_gz) |" >> bundle-size-report.md
115+ fi
116+ continue
117+ fi
118+
109119 # Check for ESM bundle (index.js)
110120 if [ -f "${dist_dir}/index.js" ]; then
111121 esm_size=$(stat -c%s "${dist_dir}/index.js")
Original file line number Diff line number Diff line change 4141 ],
4242 "sideEffects" : false ,
4343 "scripts" : {
44- "build" : " pnpm run build:esm && pnpm run build:cjs" ,
45- "build:esm" : " tsdown" ,
46- "build:cjs" : " esbuild src/index.ts --platform=node --format=cjs --outfile=dist/index.cjs" ,
44+ "build" : " tsdown" ,
4745 "dev" : " tsdown --watch" ,
4846 "test" : " vitest run" ,
4947 "typecheck" : " tsc --noEmit"
5048 },
5149 "devDependencies" : {
5250 "@types/node" : " ^22.15.17" ,
5351 "async-channel" : " ^0.2.0" ,
54- "esbuild" : " ^0.23.1" ,
5552 "tsdown" : " ^0.11.9" ,
5653 "typescript" : " ^5.8.3" ,
5754 "vitest" : " ^3.1.3"
You can’t perform that action at this time.
0 commit comments