@junejs/server 0.0.27 → 0.0.28

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/build.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junejs/server",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "June host adapters + dev server. Host-coupled; depends on the pure @junejs/core contract layer.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,8 +30,8 @@
30
30
  "typecheck": "tsc --noEmit"
31
31
  },
32
32
  "dependencies": {
33
- "@junejs/core": "0.0.27",
34
- "@junejs/db": "0.0.27",
33
+ "@junejs/core": "0.0.28",
34
+ "@junejs/db": "0.0.28",
35
35
  "marked": "^18.0.5",
36
36
  "rolldown": "^1.1.0",
37
37
  "lightningcss": "^1.27.0"
package/src/build.ts CHANGED
@@ -516,6 +516,10 @@ ${adapterEntry.wrap("pipeline")}
516
516
  transform: { define: { "process.env.NODE_ENV": JSON.stringify("production") } },
517
517
  plugins: [rolldownCssModulesPlugin(cssModuleMaps)], // .module.css → scoped class map
518
518
  external: (id: string) => {
519
+ // Bun built-ins (bun, bun:sqlite, …) exist only at Bun runtime, never in the workerd graph.
520
+ // Declaring them external silences rolldown's UNRESOLVED_IMPORT warning (it constant-folds the
521
+ // `const x = "bun"; import(x)` guard and tries to resolve "bun" before falling back to external).
522
+ if (id === "bun" || id.startsWith("bun:")) return true;
519
523
  // Binary assets stay external — wrangler's CompiledWasm/Data rules own them.
520
524
  if (/\.(wasm|ttf|otf|woff2?|png|jpe?g|avif|webp)$/.test(id)) return true;
521
525
  // config build.external: packages wrangler must bundle itself (its own