@cloudflare/vite-plugin@1.24.0
📦 cloudflare-workersView on GitHub →
✨ 1 features🐛 1 fixes🔧 3 symbols
Summary
This release introduces automatic inference of source map upload settings based on Vite configuration and fixes an issue where Miniflare was not receiving the original Host header.
Migration Steps
- If you previously specified `upload_source_maps` in your Worker config, note that if `build.sourcemap` is enabled in your Vite config, the Vite setting will now automatically set `upload_source_maps: true` in `wrangler.json`, unless you explicitly set `upload_source_maps` in the Worker config, which will take precedence.
✨ New Features
- Infer `upload_source_maps` setting in the output Worker config from the `build.sourcemap` setting in the Vite config, automatically adding `"upload_source_maps": true` to `wrangler.json` if Vite's sourcemap is enabled.
🐛 Bug Fixes
- Provide proxy shared secret to Miniflare so that the Worker receives the original Host header.