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

15 lines
291 B
JavaScript

import { defineConfig } from '@rslib/core'
export default defineConfig({
dts: true,
bundle: false,
syntax: 'es6',
lib: [{ format: 'esm' }],
source: {
entry: {
index: 'src/index.ts',
},
tsconfigPath: './tsconfig.build.json',
},
})