Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/rspack/etc/core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2466,8 +2466,6 @@ interface Experiments_2 {
register: (filter: string, layer: 'logger' | 'perfetto', output: string) => Promise<void>;
cleanup: () => Promise<void>;
};
// @deprecated (undocumented)
lazyCompilationMiddleware: typeof lazyCompilationMiddleware;
// (undocumented)
RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
// (undocumented)
Expand Down
5 changes: 0 additions & 5 deletions packages/rspack/src/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,6 @@ interface Experiments {
RsdoctorPlugin: typeof RsdoctorPlugin;
RstestPlugin: typeof RstestPlugin;
RslibPlugin: typeof RslibPlugin;
/**
* @deprecated Use `rspack.lazyCompilationMiddleware` instead
*/
lazyCompilationMiddleware: typeof lazyCompilationMiddleware;
swc: {
transform: typeof transform;
minify: typeof minify;
Expand Down Expand Up @@ -436,7 +432,6 @@ export const experiments: Experiments = {
* @internal
*/
RslibPlugin,
lazyCompilationMiddleware,
swc: {
minify,
transform,
Expand Down
4 changes: 0 additions & 4 deletions website/docs/en/guide/features/lazy-compilation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,6 @@ server.start();

- `compiler`: The current [Compiler](/api/javascript-api/compiler) instance, use `lazyCompilation` config from it.

:::tip
Prior to Rspack 1.7, this middleware was only available via `rspack.experiments.lazyCompilationMiddleware`.
:::

## Customizing lazy compilation endpoint

By default, the lazy compilation middleware uses the `/lazy-compilation-using-` prefix for handling requests. If you need to customize this prefix, you can use the `prefix` option:
Expand Down
4 changes: 0 additions & 4 deletions website/docs/zh/guide/features/lazy-compilation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ server.start();

- `compiler`: 当前的 [Compiler](/api/javascript-api/compiler),使用该 Compiler 对应的 `lazyCompilation` 配置。

:::tip
在 Rspack 1.7 版本之前,该中间件需要通过 `rspack.experiments.lazyCompilationMiddleware` 来获取。
:::

## 自定义懒编译端点

默认情况下,懒编译中间件使用 `/lazy-compilation-using-` 前缀来处理请求。如果你需要自定义这个前缀,可以使用 `prefix` 选项:
Expand Down
Loading