@naarang/ccc 3.3.0-beta.11 → 3.3.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +428 -428
- package/dist/scripts/build-binaries.ts +24 -11
- package/package.json +1 -1
- package/scripts/build-binaries.ts +24 -11
|
@@ -525,17 +525,30 @@ for (const { name, target, outfile, ptyLib, ngrokLib, ngrokPkg } of selectedTarg
|
|
|
525
525
|
|
|
526
526
|
// Build the binary (bun-pty and ngrok are now bundled via the generated loaders).
|
|
527
527
|
//
|
|
528
|
-
//
|
|
529
|
-
//
|
|
530
|
-
//
|
|
531
|
-
//
|
|
532
|
-
//
|
|
533
|
-
//
|
|
534
|
-
//
|
|
535
|
-
//
|
|
536
|
-
//
|
|
537
|
-
// worth
|
|
538
|
-
|
|
528
|
+
// --bytecode is disabled across all targets — Bun 1.3.13 has
|
|
529
|
+
// multiple regressions when combined with --compile:
|
|
530
|
+
// - Windows panics: "Internal assertion failure:
|
|
531
|
+
// total_insertions != output_files.items.len"
|
|
532
|
+
// (oven-sh/bun#23490)
|
|
533
|
+
// - Linux ARM64 binary loads but throws on first import:
|
|
534
|
+
// "TypeError: Expected CommonJS module to have a function
|
|
535
|
+
// wrapper" — bytecode mangles CJS-shaped deps (some of
|
|
536
|
+
// pi-coding-agent's transitive deps are CJS).
|
|
537
|
+
// The startup speedup isn't worth shipping a broken binary on
|
|
538
|
+
// any platform. Re-enable per-target when Bun's bytecode +
|
|
539
|
+
// CJS interop stabilizes.
|
|
540
|
+
const buildArgs = [
|
|
541
|
+
'build',
|
|
542
|
+
'--compile',
|
|
543
|
+
'--minify',
|
|
544
|
+
`--target=${target}`,
|
|
545
|
+
'--define',
|
|
546
|
+
`BUILD_VERSION="${VERSION}"`,
|
|
547
|
+
'src/index.ts',
|
|
548
|
+
'--outfile',
|
|
549
|
+
outfilePath,
|
|
550
|
+
];
|
|
551
|
+
await $`bun ${buildArgs}`;
|
|
539
552
|
console.log(` ✓ Built ${outfile}`);
|
|
540
553
|
} catch (error) {
|
|
541
554
|
console.error(` ✗ Failed to build ${name}:`, error);
|
package/package.json
CHANGED
|
@@ -525,17 +525,30 @@ for (const { name, target, outfile, ptyLib, ngrokLib, ngrokPkg } of selectedTarg
|
|
|
525
525
|
|
|
526
526
|
// Build the binary (bun-pty and ngrok are now bundled via the generated loaders).
|
|
527
527
|
//
|
|
528
|
-
//
|
|
529
|
-
//
|
|
530
|
-
//
|
|
531
|
-
//
|
|
532
|
-
//
|
|
533
|
-
//
|
|
534
|
-
//
|
|
535
|
-
//
|
|
536
|
-
//
|
|
537
|
-
// worth
|
|
538
|
-
|
|
528
|
+
// --bytecode is disabled across all targets — Bun 1.3.13 has
|
|
529
|
+
// multiple regressions when combined with --compile:
|
|
530
|
+
// - Windows panics: "Internal assertion failure:
|
|
531
|
+
// total_insertions != output_files.items.len"
|
|
532
|
+
// (oven-sh/bun#23490)
|
|
533
|
+
// - Linux ARM64 binary loads but throws on first import:
|
|
534
|
+
// "TypeError: Expected CommonJS module to have a function
|
|
535
|
+
// wrapper" — bytecode mangles CJS-shaped deps (some of
|
|
536
|
+
// pi-coding-agent's transitive deps are CJS).
|
|
537
|
+
// The startup speedup isn't worth shipping a broken binary on
|
|
538
|
+
// any platform. Re-enable per-target when Bun's bytecode +
|
|
539
|
+
// CJS interop stabilizes.
|
|
540
|
+
const buildArgs = [
|
|
541
|
+
'build',
|
|
542
|
+
'--compile',
|
|
543
|
+
'--minify',
|
|
544
|
+
`--target=${target}`,
|
|
545
|
+
'--define',
|
|
546
|
+
`BUILD_VERSION="${VERSION}"`,
|
|
547
|
+
'src/index.ts',
|
|
548
|
+
'--outfile',
|
|
549
|
+
outfilePath,
|
|
550
|
+
];
|
|
551
|
+
await $`bun ${buildArgs}`;
|
|
539
552
|
console.log(` ✓ Built ${outfile}`);
|
|
540
553
|
} catch (error) {
|
|
541
554
|
console.error(` ✗ Failed to build ${name}:`, error);
|