Skip to content

Commit f6dfe26

Browse files
committed
test ci
1 parent d5971e8 commit f6dfe26

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/core/src/plugins/PostEntryChunkPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

tests/integration/directive/index.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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]) => {

0 commit comments

Comments
 (0)