Skip to content

Commit

Permalink
fix(vite-plugin-angular): fix parsing of tsconfig option (analogjs#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
miluoshi authored and Villanuevand committed Sep 12, 2023
1 parent 5bbc2ca commit d401161
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vite-plugin-angular/src/lib/angular-vite-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ export function angular(options?: PluginOptions): Plugin[] {
*/
const pluginOptions = {
tsconfig:
options?.tsconfig ?? process.env['NODE_ENV'] === 'test'
options?.tsconfig ??
(process.env['NODE_ENV'] === 'test'
? './tsconfig.spec.json'
: './tsconfig.app.json',
: './tsconfig.app.json'),
workspaceRoot: options?.workspaceRoot ?? process.cwd(),
inlineStylesExtension: options?.inlineStylesExtension ?? '',
};
Expand Down

0 comments on commit d401161

Please sign in to comment.