File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/core/src/plugins
tests/integration/directive Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ class PostEntryPlugin {
154154 {
155155 name : PLUGIN_NAME ,
156156 // Just after minify stage, to avoid from being minified.
157- stage : rspack . Compilation . PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE + 1 ,
157+ stage : rspack . Compilation . PROCESS_ASSETS_STAGE_DEV_TOOLING - 1 ,
158158 } ,
159159 ( assets ) => {
160160 const chunkAsset = Object . keys ( assets ) ;
Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ describe('shebang', async () => {
77 const { entries } = await buildAndGetResults ( { fixturePath } ) ;
88
99 test ( 'shebang at the beginning' , async ( ) => {
10- expect ( entries . esm0 ! . startsWith ( '#!/usr/bin/env node\n' ) ) . toBe ( true ) ;
10+ console . log ( '😧1' , entries . esm0 ! ) ;
11+ expect ( entries . esm0 ! . startsWith ( '#!/usr/bin/env node' ) ) . toBe ( true ) ;
1112 } ) ;
1213
1314 test ( 'shebang at the beginning even if minified' , async ( ) => {
14- expect ( entries . esm1 ! . startsWith ( '#!/usr/bin/env node\n ' ) ) . toBe ( true ) ;
15+ expect ( entries . esm1 ! . startsWith ( '#!/usr/bin/env node' ) ) . toBe ( true ) ;
1516 } ) ;
1617} ) ;
1718
@@ -23,6 +24,7 @@ describe('react', async () => {
2324 return path . basename ( key ) === 'bar.js' ;
2425 } ) ?. [ 1 ] ;
2526
27+ console . log ( '😧2' , bar ! ) ;
2628 expect ( bar ! . startsWith ( `'use server';` ) ) . toBe ( true ) ;
2729
2830 const foo = Object . entries ( contents . esm0 ! ) . find ( ( [ key ] ) => {
You can’t perform that action at this time.
0 commit comments