Skip to content

Commit 905fcee

Browse files
authored
fix(vike): override plugin-react-swc (#442)
1 parent 97a514c commit 905fcee

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

builds/vite-plugin-react.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ export async function build(options: RunOptions) {
1212

1313
export const packages = {
1414
'@vitejs/plugin-react': 'packages/plugin-react',
15+
'@vitejs/plugin-react-swc': 'packages/plugin-react-swc/dist',
1516
'@vitejs/plugin-rsc': 'packages/plugin-rsc',
1617
}

tests/vike.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export async function test(options: RunOptions) {
88
branch: 'main',
99
overrides: {
1010
'@vitejs/plugin-react': true,
11+
'@vitejs/plugin-react-swc': true,
1112
'@vitejs/plugin-vue': true,
1213
},
1314
build: 'build',

0 commit comments

Comments
 (0)