Skip to content

Commit d9b7b91

Browse files
committed
chore: revert examples/basic
1 parent 45c04d0 commit d9b7b91

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

packages/plugin-rsc/examples/basic/vite.config.ts

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ import assert from 'node:assert'
22
import rsc, { transformHoistInlineDirective } from '@vitejs/plugin-rsc'
33
import tailwindcss from '@tailwindcss/vite'
44
import react from '@vitejs/plugin-react'
5-
import {
6-
type Plugin,
7-
createRunnableDevEnvironment,
8-
defineConfig,
9-
normalizePath,
10-
parseAstAsync,
11-
} from 'vite'
5+
import { type Plugin, defineConfig, normalizePath, parseAstAsync } from 'vite'
126
import inspect from 'vite-plugin-inspect'
137
import path from 'node:path'
148

@@ -148,30 +142,6 @@ export default { fetch: handler };
148142
'@vitejs/test-dep-server-in-client/client',
149143
],
150144
},
151-
environments: {
152-
ssr: {
153-
dev: {
154-
createEnvironment(name, config) {
155-
return createRunnableDevEnvironment(name, config, {
156-
runnerOptions: {
157-
hmr: false,
158-
},
159-
})
160-
},
161-
},
162-
},
163-
rsc: {
164-
dev: {
165-
createEnvironment(name, config) {
166-
return createRunnableDevEnvironment(name, config, {
167-
runnerOptions: {
168-
hmr: false,
169-
},
170-
})
171-
},
172-
},
173-
},
174-
},
175145
}) as any
176146

177147
function vitePluginUseCache(): Plugin[] {

0 commit comments

Comments
 (0)