Skip to content

Commit

Permalink
fix: include pretty-format in @vitest/runner for optimization on npm
Browse files Browse the repository at this point in the history
Fixes #6023
  • Loading branch information
sheremet-va committed Jul 3, 2024
1 parent 583dd8a commit 42bd4a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/browser/src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ export default (browserServer: BrowserServer, base = '/'): Plugin[] => {

return {
define,
resolve: {
dedupe: ['vitest'],
},
optimizeDeps: {
entries,
exclude: [
Expand Down Expand Up @@ -188,6 +191,7 @@ export default (browserServer: BrowserServer, base = '/'): Plugin[] => {
'vitest > pretty-format > ansi-regex',
'vitest > chai',
'vitest > chai > loupe',
'vitest > @vitest/runner > pretty-format',
'vitest > @vitest/utils > diff-sequences',
'vitest > @vitest/utils > loupe',
'@vitest/browser > @testing-library/user-event',
Expand Down

0 comments on commit 42bd4a2

Please sign in to comment.