Skip to content

Commit 2091a37

Browse files
Brooooooklynclaude
andcommitted
fix: pass tsconfig via config hook instead of mutating resolvedConfig
Move rolldownOptions.tsconfig from configResolved mutation to the config hook's return value, so Vite properly deep-merges it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6da6104 commit 2091a37

File tree

1 file changed

+5
-3
lines changed
  • napi/angular-compiler/vite-plugin

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,15 @@ export function angular(options: PluginOptions = {}): Plugin[] {
196196
include: ['rxjs/operators', 'rxjs'],
197197
exclude: ['@angular/platform-server'],
198198
},
199-
// Note: We dynamically unwatch template/style files when discovered during transform
200-
// using server.watcher.unwatch(). This is more precise than static glob patterns.
199+
build: {
200+
rolldownOptions: {
201+
tsconfig: options.tsconfig,
202+
},
203+
},
201204
}
202205
},
203206
configResolved(config) {
204207
resolvedConfig = config
205-
resolvedConfig.build.rolldownOptions.tsconfig = options.tsconfig
206208
},
207209
configureServer(server) {
208210
viteServer = server

0 commit comments

Comments
 (0)