File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,15 @@ test.describe('dev-non-optimized-cjs', () => {
58
58
)
59
59
} )
60
60
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
+ } )
62
70
63
71
test ( 'show warning' , async ( { page } ) => {
64
72
await page . goto ( f . url ( ) )
Original file line number Diff line number Diff line change @@ -46,8 +46,7 @@ export function cjsModuleRunnerPlugin(): Plugin[] {
46
46
const packageKey = extractPackageKey ( id )
47
47
if ( ! warnedPackages . has ( packageKey ) ) {
48
48
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 } ` ,
51
50
)
52
51
warnedPackages . add ( packageKey )
53
52
}
You can’t perform that action at this time.
0 commit comments