diff --git a/packages/@textlint/script-compiler/src/compiler.ts b/packages/@textlint/script-compiler/src/compiler.ts index ca87ec0..fca4a48 100644 --- a/packages/@textlint/script-compiler/src/compiler.ts +++ b/packages/@textlint/script-compiler/src/compiler.ts @@ -93,6 +93,7 @@ export const createWebpackConfig = ({ }), // Remove the `node:` prefix // see: https://github.com/webpack/webpack/issues/14166 + // see: https://github.com/web-infra-dev/rsbuild/pull/1402 new webpack.NormalModuleReplacementPlugin(/^node:/, (resource) => { resource.request = resource.request.replace(/^node:/, ""); }),