From c1f616f0c18f47033ab98bad5cd671300347f58b Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 18 Jun 2025 15:20:12 +0800 Subject: [PATCH] test(e2e): remove temporary plugin --- e2e/scripts/helper.ts | 3 +-- e2e/scripts/shared.ts | 21 --------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/e2e/scripts/helper.ts b/e2e/scripts/helper.ts index 9731a40512..88c354971a 100644 --- a/e2e/scripts/helper.ts +++ b/e2e/scripts/helper.ts @@ -3,7 +3,7 @@ import { platform } from 'node:os'; import { join } from 'node:path'; import { stripVTControlCharacters as stripAnsi } from 'node:util'; import { expect, test } from '@playwright/test'; -import type { ConsoleType, LogLevel } from '@rsbuild/core'; +import type { ConsoleType } from '@rsbuild/core'; import glob, { convertPathToPattern, type Options as GlobOptions, @@ -77,7 +77,6 @@ export const expectFile = (dir: string) => export type ProxyConsoleOptions = { types?: ConsoleType | ConsoleType[]; keepAnsi?: boolean; - logLevel?: LogLevel | 'verbose'; }; export type ProxyConsoleResult = { diff --git a/e2e/scripts/shared.ts b/e2e/scripts/shared.ts index 7f1409f1d9..f38cc396f7 100644 --- a/e2e/scripts/shared.ts +++ b/e2e/scripts/shared.ts @@ -201,27 +201,6 @@ export async function dev({ const rsbuild = await createRsbuild(options, plugins); - rsbuild.addPlugins([ - { - // fix HMR problem temporary (only appears in rsbuild repo, because css-loader is not in node_modules/ ) - // https://github.com/web-infra-dev/rspack/issues/5723 - name: 'fix-react-refresh-in-rsbuild', - setup(api) { - api.modifyBundlerChain({ - order: 'post', - handler: (chain, { CHAIN_ID }) => { - if (chain.plugins.has(CHAIN_ID.PLUGIN.REACT_FAST_REFRESH)) { - chain.plugin(CHAIN_ID.PLUGIN.REACT_FAST_REFRESH).tap((config) => { - config[0].exclude = [/node_modules/, /css-loader/]; - return config; - }); - } - }, - }); - }, - }, - ]); - const wait = waitFirstCompileDone ? new Promise((resolve) => { rsbuild.onDevCompileDone(({ isFirstCompile }) => {