File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,7 +58,15 @@ test.describe('dev-non-optimized-cjs', () => {
5858 )
5959 } )
6060
61- const f = useFixture ( { root : 'examples/basic' , mode : 'dev' } )
61+ const f = useFixture ( {
62+ root : 'examples/basic' ,
63+ mode : 'dev' ,
64+ cliOptions : {
65+ env : {
66+ DEBUG : 'vite-rsc:cjs' ,
67+ } ,
68+ } ,
69+ } )
6270
6371 test ( 'show warning' , async ( { page } ) => {
6472 await page . goto ( f . url ( ) )
Original file line number Diff line number Diff line change @@ -46,8 +46,7 @@ export function cjsModuleRunnerPlugin(): Plugin[] {
4646 const packageKey = extractPackageKey ( id )
4747 if ( ! warnedPackages . has ( packageKey ) ) {
4848 debug (
49- `Found non-optimized CJS dependency in '${ this . environment . name } ' environment. ` +
50- `It is recommended to add the dependency to 'environments.${ this . environment . name } .optimizeDeps.include'.` ,
49+ `non-optimized CJS dependency in '${ this . environment . name } ' environment: ${ id } ` ,
5150 )
5251 warnedPackages . add ( packageKey )
5352 }
You can’t perform that action at this time.
0 commit comments