File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ export default { fetch: handler };
237237 }
238238 } ,
239239 } ,
240- testScanPlugin ( ) ,
240+ testBuildPlugin ( ) ,
241241 ] ,
242242 build : {
243243 minify : false ,
@@ -265,7 +265,7 @@ export default { fetch: handler };
265265 } ,
266266} ) as any
267267
268- function testScanPlugin ( ) : Plugin [ ] {
268+ function testBuildPlugin ( ) : Plugin [ ] {
269269 const moduleIds : { name : string ; ids : string [ ] } [ ] = [ ]
270270 return [
271271 {
@@ -294,6 +294,18 @@ function testScanPlugin(): Plugin[] {
294294 } ,
295295 } ,
296296 } ,
297+ {
298+ name : 'test-copyPublicDir' ,
299+ apply : 'build' ,
300+ buildApp : {
301+ order : 'post' ,
302+ async handler ( ) {
303+ assert ( fs . existsSync ( 'dist/client/favicon.ico' ) )
304+ assert ( ! fs . existsSync ( 'dist/rsc/favicon.ico' ) )
305+ assert ( ! fs . existsSync ( 'dist/ssr/favicon.ico' ) )
306+ } ,
307+ } ,
308+ } ,
297309 ]
298310}
299311
Original file line number Diff line number Diff line change @@ -385,6 +385,7 @@ export default function vitePluginRsc(
385385 ssr : {
386386 build : {
387387 outDir : config . environments ?. ssr ?. build ?. outDir ?? 'dist/ssr' ,
388+ copyPublicDir : false ,
388389 rollupOptions : {
389390 input : rscPluginOptions . entries ?. ssr && {
390391 index : rscPluginOptions . entries . ssr ,
@@ -410,6 +411,7 @@ export default function vitePluginRsc(
410411 rsc : {
411412 build : {
412413 outDir : config . environments ?. rsc ?. build ?. outDir ?? 'dist/rsc' ,
414+ copyPublicDir : false ,
413415 emitAssets : true ,
414416 rollupOptions : {
415417 input : rscPluginOptions . entries ?. rsc && {
You can’t perform that action at this time.
0 commit comments