From bf13a70f2a00928cfb7a92cf1e034acd565b09d4 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 20 Oct 2024 10:39:20 +0800 Subject: [PATCH] chore: remove unused dynamic import --- src/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index e121755..900f510 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,5 @@ import type { RsbuildPlugin } from '@rsbuild/core'; +import { ProtocolImportsPlugin } from './ProtocolImportsPlugin.js'; import * as nodeLibs from './libs.js'; type Globals = { @@ -112,9 +113,6 @@ export function pluginNodePolyfill( } if (protocolImports) { - const { ProtocolImportsPlugin } = await import( - './ProtocolImportsPlugin.js' - ); chain.plugin('protocol-imports').use(ProtocolImportsPlugin); } });