Skip to content

Commit d87738e

Browse files
Brooooooklynclaude
andcommitted
fix: only set rolldownOptions.tsconfig when tsconfig is provided
Avoid passing undefined tsconfig which could override Rolldown's auto-discovery default. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2091a37 commit d87738e

File tree

1 file changed

+6
-4
lines changed
  • napi/angular-compiler/vite-plugin

1 file changed

+6
-4
lines changed

napi/angular-compiler/vite-plugin/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,13 @@ export function angular(options: PluginOptions = {}): Plugin[] {
196196
include: ['rxjs/operators', 'rxjs'],
197197
exclude: ['@angular/platform-server'],
198198
},
199-
build: {
200-
rolldownOptions: {
201-
tsconfig: options.tsconfig,
199+
...(options.tsconfig && {
200+
build: {
201+
rolldownOptions: {
202+
tsconfig: options.tsconfig,
203+
},
202204
},
203-
},
205+
}),
204206
}
205207
},
206208
configResolved(config) {

0 commit comments

Comments
 (0)