Skip to content

Commit 1806295

Browse files
committed
fix: add explicit outDir to rollup typescript plugin
The @rollup/plugin-typescript@12.3.0 update introduced stricter validation requiring the TypeScript outDir to align with rollup output paths. This fix adds compilerOptions: { outDir: 'dist' } to the typescript plugin configuration to satisfy the new validation. Fixes build failures in PR #19 (development-dependencies group update) Refs: #19
1 parent 413d68b commit 1806295

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

rollup.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ export default [
4040
extract: 'styles.css',
4141
minimize: true,
4242
}),
43-
typescript({ tsconfig: './tsconfig.json', declaration: false }),
43+
typescript({
44+
tsconfig: './tsconfig.json',
45+
declaration: false,
46+
compilerOptions: { outDir: 'dist' }
47+
}),
4448
babel({
4549
babelHelpers: 'bundled',
4650
extensions: ['.js', '.jsx', '.ts', '.tsx'],

0 commit comments

Comments
 (0)