Skip to content

Commit

Permalink
fix: optimizeDeps.disabled (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Apr 14, 2022
1 parent ab8e2b8 commit b40fb60
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 318 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -57,14 +57,14 @@
"rollup-plugin-esbuild": "^4.9.1",
"rollup-plugin-license": "^2.7.0",
"typescript": "^4.6.3",
"vite": "^2.9.1",
"vite": "^2.9.5",
"vitepress": "^0.22.3",
"vitest": "workspace:*",
"vue": "^3.2.32"
},
"pnpm": {
"overrides": {
"vite": "^2.9.1"
"vite": "^2.9.5"
}
},
"vite": {
Expand Down
4 changes: 3 additions & 1 deletion packages/ui/client/components.d.ts
Expand Up @@ -2,7 +2,7 @@
// We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/vue-next/pull/3399

declare module 'vue' {
declare module '@vue/runtime-core' {
export interface GlobalComponents {
CodeMirror: typeof import('./components/CodeMirror.vue')['default']
ConnectionOverlay: typeof import('./components/ConnectionOverlay.vue')['default']
Expand All @@ -15,6 +15,8 @@ declare module 'vue' {
ModuleTransformResultView: typeof import('./components/ModuleTransformResultView.vue')['default']
Navigation: typeof import('./components/Navigation.vue')['default']
ProgressBar: typeof import('./components/ProgressBar.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
StatusIcon: typeof import('./components/StatusIcon.vue')['default']
Suites: typeof import('./components/Suites.vue')['default']
TaskItem: typeof import('./components/TaskItem.vue')['default']
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-node/package.json
Expand Up @@ -67,7 +67,7 @@
"minimist": "^1.2.6",
"mlly": "^0.5.1",
"pathe": "^0.2.0",
"vite": "^2.9.1"
"vite": "^2.9.5"
},
"devDependencies": {
"@types/minimist": "^1.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/package.json
Expand Up @@ -86,7 +86,7 @@
"local-pkg": "^0.4.1",
"tinypool": "^0.1.2",
"tinyspy": "^0.3.2",
"vite": "^2.9.1"
"vite": "^2.9.5"
},
"devDependencies": {
"@antfu/install-pkg": "^0.1.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/vitest/src/node/plugins/index.ts
Expand Up @@ -79,6 +79,8 @@ export async function VitestPlugin(options: UserConfig = {}, ctx = new Vitest())
// disable deps optimization
cacheDir: undefined,
optimizeDeps: {
// experimental in Vite >2.9.2, entries remains to help with older versions
disabled: true,
entries: [],
},
}
Expand Down

0 comments on commit b40fb60

Please sign in to comment.