Change8

v0.25.7

📦 esbuild
4 features🐛 1 fixes🔧 3 symbols

Summary

This release adds support for JavaScript 'defer' and 'source' import phases, introduces an option for absolute path output, and improves minification by inlining short string constants.

Migration Steps

  1. To use 'defer' or 'source' import phases, ensure imported paths are marked as external and the output format is set to 'esm', as esbuild cannot yet bundle these phases.

✨ New Features

  • Added basic syntax support for JavaScript 'defer' import phase (Stage 3 proposal).
  • Added basic syntax support for JavaScript 'source' import phase (Stage 3 proposal).
  • Introduced the --abs-paths flag to optionally emit absolute paths instead of relative paths in 'code', 'log', and 'metafile' outputs.
  • The minifier now inlines small constant strings (3 code units or less) to reduce bundle size.

🐛 Bug Fixes

  • Fixed a TypeScript parsing edge case involving arrow function return types within ternary operators (?:) that required backtracking.

🔧 Affected Symbols

import.deferimport.source--abs-paths