Release v0.28.0 is a small but notable update. It adds new import syntax support, tightens the fallback installer path, and bumps the Go toolchain.
What's new
- Adds support for
with { type: 'text' }imports, matching esbuild’s existingtextloader behavior. This lets you write imports likeimport string from './example.txt' with { type: 'text' }and have the imported value come through as a string. (#4435)
Breaking changes
- The fallback download path now verifies the hash of the downloaded binary against the expected hash for the current release. As a result, the hashes for all platform-specific binary packages are now embedded in the top-level
esbuildpackage, and this is being shipped as a breaking change release. (#4343)
Other notable changes
- Updates the Go compiler from 1.25.7 to 1.26.1. This should not affect normal use, but the release notes call out internal Go runtime and linker changes that could affect edge cases.
Contributors
- @evanw