RepoJournal
Elixir & Phoenix

Elixir & Phoenix

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

Keep up with Elixir & Phoenix in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Elixir & Phoenix Full archive →

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].

One email a day. Unsubscribe in one click.

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

Quick answers

What shipped 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. In total, 4 commits, 2 pull requests, and 1 releases landed.
What were the notable Elixir & Phoenix updates?
Bundle app.js as ESM module for new projects (#6548) and v1.2.4.

More from Elixir & Phoenix

Daily updates, in your inbox

Follow Elixir & Phoenix

Keep up with Elixir & Phoenix in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.