File tree Expand file tree Collapse file tree 1 file changed +1
-31
lines changed
packages/plugin-rsc/examples/basic Expand file tree Collapse file tree 1 file changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,7 @@ import assert from 'node:assert'
22import rsc , { transformHoistInlineDirective } from '@vitejs/plugin-rsc'
33import tailwindcss from '@tailwindcss/vite'
44import 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'
126import inspect from 'vite-plugin-inspect'
137import 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
177147function vitePluginUseCache ( ) : Plugin [ ] {
You can’t perform that action at this time.
0 commit comments