Change8

Migrating to esbuild v0.27.2

Version v0.27.2 introduces 1 breaking change. This guide details how to update your code.

Released: 12/17/2025

1
Breaking Changes
1
Migration Steps
4
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

usingmaskswitchpackage.json#imports

Breaking Changes

Issue #1

Using declarations are no longer allowed directly inside switch case/default clauses due to TC39 specification changes. To fix this, wrap the case body in a block statement using curly braces { }.

Migration Steps

  1. 1
    Identify any switch statements containing 'using' declarations and wrap the case/default bodies in curly braces { } to create a new scope.

Release Summary

This release adds support for #/ import specifiers, introduces CSS -webkit-mask auto-prefixing, and improves switch statement minification. It also restricts 'using' declarations in switch clauses to align with the latest ECMAScript proposal.

Need More Details?

View the full release notes and all changes for esbuild v0.27.2.

View Full Changelog