Skip to content

Commit f10a534

Browse files
fix(vite-plugin-angular): add @analogjs/router to vitest inline deps
1 parent a9b08ef commit f10a534

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/vite-plugin-angular/src/lib/angular-vitest-plugin.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ export function angularVitestPlugin(): Plugin {
1212
},
1313
test: {
1414
pool: userConfig.test?.pool ?? 'vmThreads',
15+
server: {
16+
deps: {
17+
inline: ['@analogjs/router'],
18+
},
19+
},
1520
},
16-
} as UserConfig;
21+
};
1722
},
1823
async transform(_code, id) {
1924
if (/fesm2022/.test(id) && _code.includes('async (')) {

0 commit comments

Comments
 (0)