Skip to content

Commit

Permalink
fix: dead link
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Apr 29, 2024
1 parent 6c02d9c commit f57dc5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website/docs/en/guide/features/plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ If [loaders](/guide/features/loader) are the workhorse for file transformations

### Authoring plugins

The structure of a plugin is very simple: just implement an `apply` method that accepts a `Compiler` instance. It will be called when the Rspack plugin is initialized. The detailed API can be found in the [Plugin API](/api/plugin-api).
The structure of a plugin is very simple: just implement an `apply` method that accepts a `Compiler` instance. It will be called when the Rspack plugin is initialized. The detailed API can be found in the [Plugin API](/api/plugin-api/index).

```js
const PLUGIN_NAME = 'MyPlugin';
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/api/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ Loader 用于模块源代码的转换。它们被编写为函数,接收源代

插件允许用户直接介入编译过程。插件可以在生命周期钩子上注册处理程序,这些钩子在编译过程的不同节点处运行。当钩子被执行时,插件将能完全访问当前编译的状态。

[了解更多关于插件的信息!](/api/plugin-api)
[了解更多关于插件的信息!](/api/plugin-api/index)
2 changes: 1 addition & 1 deletion website/docs/zh/guide/features/plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

### 编写一个插件

插件的结构非常简单,只需要实现一个 `apply` 方法,这个方法接受一个 `Compiler` 实例,并会在 Rspack 插件初始化时被调用。详细的 API 可以参考 [Plugin API](/api/plugin-api)
插件的结构非常简单,只需要实现一个 `apply` 方法,这个方法接受一个 `Compiler` 实例,并会在 Rspack 插件初始化时被调用。详细的 API 可以参考 [Plugin API](/api/plugin-api/index)

```js
const PLUGIN_NAME = 'MyPlugin';
Expand Down

0 comments on commit f57dc5c

Please sign in to comment.