next-bun-compile 0.9.0 → 0.10.0

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/README.md CHANGED
@@ -89,7 +89,7 @@ You'll need to upload `.next/static/` to your CDN separately.
89
89
 
90
90
  ## Performance
91
91
 
92
- The compiled binary uses Bun's `--bytecode` flag to pre-compile JavaScript to bytecode at build time, skipping the parsing step at startup. Code is also minified and dead code paths (dev-only modules, non-turbo runtimes) are eliminated via `--define` flags.
92
+ The compiled binary is minified, and dead code paths (dev-only modules, non-turbo runtimes) are eliminated via `--define` flags. Startup skips module resolution for the bundled server core entirely — the code is already in the binary.
93
93
 
94
94
  Benchmarks on a real Next.js app (both running on Bun's runtime):
95
95
 
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  compile,
4
4
  generateEntryPoint
5
- } from "./index-45tzedws.js";
5
+ } from "./index-d3wb5t4x.js";
6
6
 
7
7
  // src/cli.ts
8
8
  import { existsSync } from "node:fs";
@@ -844,7 +844,6 @@ function compile(options) {
844
844
  "--production",
845
845
  "--compile",
846
846
  "--minify",
847
- "--bytecode",
848
847
  "--sourcemap",
849
848
  "--define",
850
849
  "process.env.TURBOPACK=1",
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  compile,
3
3
  generateEntryPoint
4
- } from "./index-45tzedws.js";
4
+ } from "./index-d3wb5t4x.js";
5
5
  export {
6
6
  generateEntryPoint,
7
7
  compile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-bun-compile",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Compile your Next.js app into a Bun single-file executable",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",