Skip to content

Commit

Permalink
fix(vite-plugin-angular): use ssr.noExternal for matching libraries d…
Browse files Browse the repository at this point in the history
…uring testing
  • Loading branch information
brandonroberts committed Jan 7, 2025
1 parent 06760c4 commit f8cf994
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@ export function angularVitestPlugin(): Plugin {
exclude: ['@angular/cdk/testing'],
},
ssr: {
noExternal: [/cdk\/fesm2022/],
noExternal: [/cdk\/fesm2022/, /fesm2022(.*?)testing/, /fesm2015/],
},
test: {
pool: userConfig.test?.pool ?? 'vmThreads',
server: {
deps: {
inline: [/fesm2022(.*?)testing/],
},
},
},
};
},
Expand Down

0 comments on commit f8cf994

Please sign in to comment.