Skip to content

Commit

Permalink
docs: fix webpackContext link (#3524)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Sep 21, 2024
1 parent 7ed329e commit 26a54ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/en/guide/migration/vite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default defineConfig({

Vite provides `import.meta.glob()` for importing multiple modules.

When migrating to Rsbuild, you can use the [import.meta.webpackContext()](https://rspack.dev/api/modules/module-variables#importmetawebpackcontext) function of Rspack instead:
When migrating to Rsbuild, you can use the [import.meta.webpackContext()](https://rspack.dev/api/runtime-api/module-variables#importmetawebpackcontext) function of Rspack instead:

- Vite:

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/guide/migration/vite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default defineConfig({

Vite 提供了 `import.meta.glob()` 来批量导入模块。

迁移到 Rsbuild 时,你可以使用 Rspack 的 [import.meta.webpackContext](https://rspack.dev/zh/api/modules/module-variables#importmetawebpackcontext) 函数代替:
迁移到 Rsbuild 时,你可以使用 Rspack 的 [import.meta.webpackContext](https://rspack.dev/zh/api/runtime-api/module-variables#importmetawebpackcontext) 函数代替:

- Vite:

Expand Down

0 comments on commit 26a54ba

Please sign in to comment.