mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
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.
15 lines
291 B
JavaScript
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',
|
|
},
|
|
})
|