Fix import.meta.dir fallback handling in build scripts

This commit is contained in:
nirholas
2026-03-31 11:18:17 +00:00
parent ed9c151933
commit cf482195ff
6 changed files with 88 additions and 3 deletions

View File

@@ -174,7 +174,7 @@ async function main() {
const outFiles = Object.entries(result.metafile.outputs)
for (const [file, info] of outFiles) {
if (file.endsWith('.mjs')) {
const sizeMB = (info.bytes / 1024 / 1024).toFixed(2)
const sizeMB = ((info as { bytes: number }).bytes / 1024 / 1024).toFixed(2)
console.log(`\n ${file}: ${sizeMB} MB`)
}
}