Skip to content

Commit 2bd3db9

Browse files
committed
fix: Node target
1 parent bd286de commit 2bd3db9

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

e2e/cases/server/ssr-type-module/index.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ import { expect } from '@playwright/test';
44
rspackOnlyTest('support SSR load esm with type module', async ({ page }) => {
55
const rsbuild = await dev({
66
cwd: __dirname,
7-
rsbuildConfig: {},
7+
rsbuildConfig: {
8+
dev: {
9+
assetPrefix: './',
10+
},
11+
},
812
});
913

1014
const url1 = new URL(`http://localhost:${rsbuild.port}`);

e2e/cases/server/ssr/index.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ rspackOnlyTest('support SSR with esm target', async ({ page }) => {
5252

5353
const rsbuild = await dev({
5454
cwd: __dirname,
55-
rsbuildConfig: {},
55+
rsbuildConfig: {
56+
dev: {
57+
assetPrefix: './',
58+
},
59+
},
5660
});
5761

5862
const url1 = new URL(`http://localhost:${rsbuild.port}`);
@@ -72,6 +76,9 @@ rspackOnlyTest('support SSR with esm target & external', async ({ page }) => {
7276
const rsbuild = await dev({
7377
cwd: __dirname,
7478
rsbuildConfig: {
79+
dev: {
80+
assetPrefix: './',
81+
},
7582
output: {
7683
externals: {
7784
react: 'react',

0 commit comments

Comments
 (0)