From 9bb7e96a8106d3bd3e76fe12329620309c0afab5 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 5 Aug 2024 21:06:28 +0800 Subject: [PATCH] docs: link to Rspack document instead of webpack (#3135) --- packages/core/src/plugins/swc.ts | 2 +- website/docs/en/config/security/nonce.mdx | 2 +- website/docs/en/shared/onAfterBuild.mdx | 2 +- website/docs/en/shared/onAfterCreateCompiler.mdx | 2 +- website/docs/en/shared/onAfterEnvironmentCompile.mdx | 2 +- website/docs/zh/config/security/nonce.mdx | 2 +- website/docs/zh/shared/onAfterBuild.mdx | 2 +- website/docs/zh/shared/onAfterCreateCompiler.mdx | 2 +- website/docs/zh/shared/onAfterEnvironmentCompile.mdx | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/core/src/plugins/swc.ts b/packages/core/src/plugins/swc.ts index a4e3449359..5dd9be9be4 100644 --- a/packages/core/src/plugins/swc.ts +++ b/packages/core/src/plugins/swc.ts @@ -168,7 +168,7 @@ export const pluginSwc = (): RsbuildPlugin => ({ /** * If a script is imported with data URI, it can be compiled by babel too. * This is used by some frameworks to create virtual entry. - * https://webpack.js.org/api/module-methods/#import + * https://rspack.dev/api/runtime-api/module-methods#import * @example: import x from 'data:text/javascript,export default 1;'; */ dataUriRule.resolve diff --git a/website/docs/en/config/security/nonce.mdx b/website/docs/en/config/security/nonce.mdx index a76c33fd13..a867cf1001 100644 --- a/website/docs/en/config/security/nonce.mdx +++ b/website/docs/en/config/security/nonce.mdx @@ -41,7 +41,7 @@ The `security.nonce` config adds the nonce attribute to the following tags: - All `