> For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt.

# 废弃选项

本页面列出了 Rspack 中已被废弃的配置选项。

这些选项仅为向后兼容而保留，不应在新项目中使用。

## experiments.css


Stability: Deprecated

- **类型：** `boolean`
- **默认值：** `false`

:::warning 已弃用
此选项在 Rspack 2.0 中已弃用。现在手动添加 CSS type 将模块标记为 CSS 模块。
:::

### 迁移

要在 Rspack 2.0 中使用 CSS，需要手动添加 CSS 规则到配置中：

```js title="rspack.config.mjs"
export default {
  module: {
    rules: [
      {
        test: /\.css$/i,
        type: 'css/auto',
      },
    ],
  },
};
```

### 旧用法（已弃用）

```js title="rspack.config.mjs"
export default {
  experiments: {
    css: true,
  },
};
```

## experiments.incremental


Stability: Deprecated

此选项已移动至顶层 [`incremental`](/zh/config/incremental.md)。

## rules\[].loaders

用于传递 Loader 包名与其选项的数组。

:::warning
该选项已被废弃，请改用 [rules\[\].use](/zh/config/module-rules.md#rulesuse)。
:::
