Skip to content

Commit

Permalink
fix(vite-plugin-angular): disable esbuild to support correct sourcema…
Browse files Browse the repository at this point in the history
…ps/coverage reports

Closes #1211
Closes #1212
  • Loading branch information
brandonroberts committed Aug 30, 2024
1 parent f30acf3 commit e8b5cbe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Plugin, UserConfig, transformWithEsbuild } from 'vite';
import { Plugin, transformWithEsbuild } from 'vite';

export function angularVitestPlugin(): Plugin {
return {
Expand All @@ -7,6 +7,8 @@ export function angularVitestPlugin(): Plugin {
enforce: 'post',
config(userConfig) {
return {
// Disable esbuild for proper support for sourcemaps/coverage
esbuild: false,
ssr: {
noExternal: [/cdk\/fesm2022/],
},
Expand Down

0 comments on commit e8b5cbe

Please sign in to comment.