Files
Catalin IrimieandGitHub ec90fa4cd7 fix(rollup-plugin): set Vite sourcemap config before transform plugins (#3519)
Vite's transform plugins emit source maps based on `build.sourcemap` at
config-resolution time, so setting it via `outputOptions` (Rollup-only,
runs late) was too late - uploaded maps lacked original sources. Add a
`config()` hook that sets `build.sourcemap` during Vite's config phase.

Also stop overriding the user's `sourcemap` setting when
`sourcemaps.enabled` is `false`, add unit tests, and exclude the new
spec from the published tarball.
2026-05-04 19:09:38 +03:00

4 lines
119 B
JavaScript

export default {
presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'],
}