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.
6 lines
103 B
JSON
6 lines
103 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"include": ["src/**/*"],
|
|
"exclude": ["src/**/*.spec.ts"]
|
|
}
|