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 };
237
237
}
238
238
} ,
239
239
} ,
240
- testScanPlugin ( ) ,
240
+ testBuildPlugin ( ) ,
241
241
] ,
242
242
build : {
243
243
minify : false ,
@@ -265,7 +265,7 @@ export default { fetch: handler };
265
265
} ,
266
266
} ) as any
267
267
268
- function testScanPlugin ( ) : Plugin [ ] {
268
+ function testBuildPlugin ( ) : Plugin [ ] {
269
269
const moduleIds : { name : string ; ids : string [ ] } [ ] = [ ]
270
270
return [
271
271
{
@@ -294,6 +294,18 @@ function testScanPlugin(): Plugin[] {
294
294
} ,
295
295
} ,
296
296
} ,
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
+ } ,
297
309
]
298
310
}
299
311
Original file line number Diff line number Diff line change @@ -385,6 +385,7 @@ export default function vitePluginRsc(
385
385
ssr : {
386
386
build : {
387
387
outDir : config . environments ?. ssr ?. build ?. outDir ?? 'dist/ssr' ,
388
+ copyPublicDir : false ,
388
389
rollupOptions : {
389
390
input : rscPluginOptions . entries ?. ssr && {
390
391
index : rscPluginOptions . entries . ssr ,
@@ -410,6 +411,7 @@ export default function vitePluginRsc(
410
411
rsc : {
411
412
build : {
412
413
outDir : config . environments ?. rsc ?. build ?. outDir ?? 'dist/rsc' ,
414
+ copyPublicDir : false ,
413
415
emitAssets : true ,
414
416
rollupOptions : {
415
417
input : rscPluginOptions . entries ?. rsc && {
You can’t perform that action at this time.
0 commit comments