RepoJournal
Elixir & Phoenix

Elixir & Phoenix

Elixir, Phoenix, LiveView, and Ecto - the BEAM web stack

Pick a date

The Wire · Showcase

PHOENIX FLIPS TO ESM BY DEFAULT, LIVE VIEW PATCHES DIRECTIVE BUG

By RepoJournal · Filed · About Elixir & Phoenix

Phoenix's new project installer now outputs ESM modules for app.js, bringing tree shaking and code splitting to every new codebase.

The Phoenix team is updating mix phx.new to configure esbuild for ESM output by default [1], aligning with how modern bundlers like Vite work. ESM modules enable tree shaking, code splitting, and strict mode, which cuts bundle sizes and catches coding errors earlier. This is a breaking change for new projects only, but it's the right move for 2025. Meanwhile, LiveView 1.2.4 shipped with a critical fix for colocated components [2]: directives were getting dropped when a single component used both ColocatedCSS and ColocatedHook together. If you're using scoped CSS with JS hooks in the same LiveView component, this patch fixes the attribute loss. The release also restores missing img attributes on live_img_preview and quiets false warnings about form recovery [2].

Action items

References

  1. [1] Bundle app.js as ESM module for new projects (#6548) phoenixframework/phoenix
  2. [2] v1.2.4 ↗ phoenixframework/phoenix_live_view

FAQ

What changed in Elixir & Phoenix on June 30, 2026?
Phoenix's new project installer now outputs ESM modules for app.js, bringing tree shaking and code splitting to every new codebase.
What should Elixir & Phoenix teams do about it?
Upgrade phoenix_live_view to 1.2.4 immediately if using colocated CSS and JS together • Review new Phoenix projects for ESM output config once v1.9.0 ships
Which Elixir & Phoenix repositories shipped on June 30, 2026?
phoenixframework/phoenix, phoenixframework/phoenix_live_view

For your repos

The showcase is a teaser.
Your wire is the product.

Same engine. Different stack. Below: what changes when the wire is yours.

Showcase wire

  • 14 famous open source orgs
  • One wire per day
  • Public, generic
  • Read on the web, when you remember

Your wire

  • Up to 1,500 of your repos - orgs, deps, vendors
  • Morning and evening briefs
  • Action items routed to your team
  • Slack delivery, email, breaking-news CVE alerts

Want a hands-on demo first? Ask a current user for an invite link.