Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Deno 13 min read Opinion mediumAdept

You Don't Need a Build Step

Modern JavaScript build steps exist largely because Node's server-side JavaScript diverged from browser JavaScript, forcing compilation, minification, bundling and code-splitting before code can run in the browser. A walkthrough of the Next.js blog starter shows each stage, including compiled JSX output and a huge dependency graph, and identifies dependency-graph traversal during bundling as where most build time goes. Deno and Fresh are pitched as an alternative: browser-compatible JavaScript with native ESM and web APIs, rendered just-in-time on the server, so no build step is needed.

Related posts

  • Wrapping My Mind Around Node.js Runtimes

    Neon easyNovice

    Deno and Bun take different approaches to replacing Node.js as a server-side JavaScript runtime. Deno, built by Node's creator, focuses on security with a permission sandbox, built-in TypeScript and web-standard APIs. In Deno 2 it has moved away from URL imports toward the JSR registry and Node compatibility. Bun runs on JavaScriptCore, aims for speed, and bundles a package manager, test runner, bundler, embedded SQLite and automatic .env loading. The recommendation: Node.js for long-lived projects, Deno when security or Deno Deploy matters, and Bun when performance is the priority, or just as a fast package manager, as Neon does for neonctl.

  • Fresh 1.0

    Deno mediumAdept

    Fresh is a full stack web framework for Deno that renders pages just-in-time on the server and ships zero JavaScript to the client by default, using the islands architecture so only explicitly opted-in components are hydrated in the browser. It uses Preact and JSX/TSX on both server and client, has file-system routing with handlers for custom responses and async data loading, and has no build step: TypeScript and JSX are transpiled on demand, so deployments are near-instant. Version 1.0 is declared production-ready and is well suited to edge runtimes such as Deno Deploy, Netlify Edge Functions and Supabase Edge Functions.

  • A Whole Website in a Single JavaScript File

    Deno mediumAdept

    A demo multi-page website fits entirely in one JavaScript file and is server-rendered on demand at the edge with Deno. Routing uses a small `router` module built on `URLPattern`, and JSX is rendered server-side with `nanossr`, which styles via twind. Triple-slash reference comments select exactly which TypeScript libs (dom, dom.asynciterable, deno.ns) are loaded. Hosted on Deno Deploy, the site gets a perfect PageSpeed score and is served from 29 data centers over an anycast IP at no cost.

  • Fresh 1.4 – Faster Page Loads, Layouts and More

    Deno mediumAdept

    Fresh 1.4 adds optional ahead-of-time asset compilation via `deno task build`, which serves island assets roughly 45-60x faster on serverless cold starts than on-the-fly JIT compilation; a ~30kB search island that took 4.28s now revives near-instantly. The development server still uses JIT. The release also lets `_app.tsx` render the full html/head/body document, with a fallback to the old template when no html tag is rendered. New features include nested and async `_layout` files with opt-out config, `defineRoute`/`defineLayout`/`defineApp` typing helpers, parenthesized route groups that don't affect URLs, and private `(_components)` and `(_islands)` folders for colocating code.

  • Deno 2.8

    Deno mediumAdept

    Deno 2.8 adds new subcommands (audit fix, bump-version with Conventional Commits workspace support, ci, pack for building npm tarballs from Deno/JSR projects, transpile, why), makes unprefixed package names default to npm in deno add/install, and supports TC39 import defer. Node.js test-suite pass rate rose from about 42% to 76.4%, compared with 40.6% for Bun 1.3.14. Cold npm installs are 3.66x faster, driven by abbreviated packuments, parallel resolution, decompression moved off the event loop and split tarball extraction. Other gains include 2.21x node:http throughput, 3.07x base64 via simdutf, and malloc_trim fixes for RSS bloat on Linux.

The quest for software engineering knowledge.

Look:
Layout: