Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion e2e/cases/server/ssr-type-module/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { expect } from '@playwright/test';
rspackOnlyTest('support SSR load esm with type module', async ({ page }) => {
const rsbuild = await dev({
cwd: __dirname,
rsbuildConfig: {},
rsbuildConfig: {
dev: {
assetPrefix: './',
},
},
});

const url1 = new URL(`http://localhost:${rsbuild.port}`);
Expand Down
9 changes: 8 additions & 1 deletion e2e/cases/server/ssr/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ rspackOnlyTest('support SSR with esm target', async ({ page }) => {

const rsbuild = await dev({
cwd: __dirname,
rsbuildConfig: {},
rsbuildConfig: {
dev: {
assetPrefix: './',
},
},
});

const url1 = new URL(`http://localhost:${rsbuild.port}`);
Expand All @@ -72,6 +76,9 @@ rspackOnlyTest('support SSR with esm target & external', async ({ page }) => {
const rsbuild = await dev({
cwd: __dirname,
rsbuildConfig: {
dev: {
assetPrefix: './',
},
output: {
externals: {
react: 'react',
Expand Down
7 changes: 0 additions & 7 deletions e2e/cases/source/source-include/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
import { build } from '@e2e/helper';
import { expect, test } from '@playwright/test';
import { pluginCheckSyntax } from '@rsbuild/plugin-check-syntax';

test('should compile modules outside of project by default', async () => {
const rsbuild = await build({
cwd: __dirname,
plugins: [pluginCheckSyntax()],
catchBuildError: true,
rsbuildConfig: {
output: {
overrideBrowserslist: ['ie 11'],
},
},
});

expect(rsbuild.buildError).toBeFalsy();
Expand Down
9 changes: 9 additions & 0 deletions e2e/cases/source/source-include/rsbuild.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from '@rsbuild/core';
import { pluginCheckSyntax } from '@rsbuild/plugin-check-syntax';

export default defineConfig({
plugins: [pluginCheckSyntax()],
output: {
overrideBrowserslist: ['android >= 4.4'],
},
});
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"bump": "npx bumpp --no-tag"
},
"dependencies": {
"@rspack/core": "1.4.2",
"@rspack/core": "1.4.3",
"@rspack/lite-tapable": "~1.0.1",
"@swc/helpers": "^0.5.17",
"core-js": "~3.43.0",
Expand Down
Loading
Loading