v0.25.4
📦 esbuild
✨ 2 features🐛 2 fixes🔧 5 symbols
Summary
This release introduces CORS support for the development server to enable cross-origin debugging and fixes regressions related to source map URL parsing and '__proto__' exports.
Migration Steps
- If you need to access the development server from a different origin (e.g., debugging production with localhost), add the '--cors-origin' flag to your CLI command or the 'cors' property to your 'ctx.serve' configuration.
✨ New Features
- Added CORS support to the development server for simple requests via the new 'cors' option.
- The 'cors' option allows setting 'Access-Control-Allow-Origin' based on a matching 'Origin' header or using '*' for all origins.
🐛 Bug Fixes
- Fixed a regression from 0.25.0 where invalid URLs in source map 'sources' were replaced with empty strings; they are now passed through unmodified.
- Fixed an issue where ESM exports named '__proto__' incorrectly set the prototype of the export object during ESM-to-CommonJS conversion.
🔧 Affected Symbols
ctx.serveapi.ServeOptionsapi.CORSOptionssources__proto__