Skip to content

Commit

Permalink
feat: add runtime plugin hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Jan 22, 2025
1 parent 0603700 commit 88575ff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/en/api/plugin-api/runtime-plugin-hooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ hooks.linkPreload.tap('MyPlugin', (code, chunk) => {
>
<ChunkType />
</CollapsePanel>
</Collapse>{' '}
</Collapse>
7 changes: 7 additions & 0 deletions website/docs/en/plugins/rspack/runtime-plugin.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { ApiMeta } from '@components/ApiMeta.tsx';

# RuntimePlugin

<ApiMeta specific={['Rspack']} />

This plugin is used to render the runtime of Rspack, and it provides some hooks to modify the runtime code. See [RuntimePlugin Hooks](/api/plugin-api/runtime-plugin-hooks) for more details.
7 changes: 7 additions & 0 deletions website/docs/zh/plugins/rspack/runtime-plugin.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { ApiMeta } from '@components/ApiMeta.tsx';

# RuntimePlugin

<ApiMeta specific={['Rspack']} />

这个插件用于渲染 Rspack 的运行时,并且它提供了一些钩子来修改运行时代码。有关更多详细信息,请参阅 [RuntimePlugin Hooks](/api/plugin-api/runtime-plugin-hooks)

0 comments on commit 88575ff

Please sign in to comment.