Skip to content

Commit 20c0d74

Browse files
committed
Add vite as an optional peer dependency for @reduxjs/vitest-config
1 parent acfcb1b commit 20c0d74

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/configs/vitest/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,13 @@
4949
"url": "https://github.com/reduxjs/redux-toolkit/issues"
5050
},
5151
"peerDependencies": {
52+
"vite": "*",
5253
"vitest": ">= 1"
5354
},
5455
"peerDependenciesMeta": {
56+
"vite": {
57+
"optional": true
58+
},
5559
"vitest": {
5660
"optional": true
5761
}

packages/configs/vitest/tsup.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const tsupConfig = defineConfig((overrideOptions): Options[] => {
3232
// and cannot be imported using the `require` syntax,
3333
// we can inline it to get around this problem.
3434
noExternal: ['vite-tsconfig-paths'],
35-
external: ['vite', 'debug', 'globrex', 'tsconfck'],
35+
external: ['debug', 'globrex', 'tsconfck'],
3636
},
3737
{
3838
...commonOptions,

yarn.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6528,8 +6528,11 @@ __metadata:
65286528
vite-tsconfig-paths: "npm:^5.0.1"
65296529
vitest: "npm:^2.0.5"
65306530
peerDependencies:
6531+
vite: "*"
65316532
vitest: ">= 1"
65326533
peerDependenciesMeta:
6534+
vite:
6535+
optional: true
65336536
vitest:
65346537
optional: true
65356538
languageName: unknown

0 commit comments

Comments
 (0)