Skip to content

Commit

Permalink
docs: remove disableTransformByDefault (#7863)
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy authored Sep 11, 2024
1 parent c67d4c2 commit d64eb75
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion website/docs/en/config/module.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,6 @@ Used to mark the type of the matching module, which affects how the module is ha
- `'javascript/auto'`: JavaScript modules, supported module systems: CommonJS, ESM, no plans for AMD module support at this time.
- `'javascript/esm'`:JavaScript modules, treated as ES Module.
- `'javascript/dynamic'`:JavaScript modules, treated as Script.
- `'typescript'`: TypeScript module (🚧 deprecated, checkout [experiments.rspackFuture.disableTransformByDefault](/config/experiments#experimentsrspackfuturedisabletransformbydefault) for more details)
- `'css'`: CSS module
- `'css/module'`: CSS Modules module
- `'css/auto'`: CSS Modules module if filename matches `/\.module(s)?\.[^.]+$/`, otherwise CSS module
Expand Down
5 changes: 0 additions & 5 deletions website/docs/en/guide/tech/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ const ReactRefreshPlugin = require('@rspack/plugin-react-refresh');
const isDev = process.env.NODE_ENV === 'development';

module.exports = {
experiments: {
rspackFuture: {
disableTransformByDefault: true,
},
},
// ...
mode: isDev ? 'development' : 'production',
module: {
Expand Down
3 changes: 0 additions & 3 deletions website/docs/zh/config/module.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -978,9 +978,6 @@ module.exports = {
- `'javascript/auto'`:JavaScript 模块,支持的模块系统:CommonJS、ESM,暂没有对 AMD 模块支持的计划。
- `'javascript/esm'`:JavaScript 模块,当作严格 ES Module 处理。
- `'javascript/dynamic'`:JavaScript 模块,当作 Script 处理。
- `'jsx'`: 支持 JSX 的 JavaScript 模块(🚧 已废弃,详见 [experiments.rspackFuture.disableTransformByDefault](/config/experiments#experimentsrspackfuturedisabletransformbydefault))。
- `'typescript'`:TypeScript 模块(🚧 已废弃)。
- `'tsx'`: 支持 TSX 的 TypeScript 模块(🚧 已废弃)。
- `'css'`:CSS 模块。
- `'css/module'`:CSS Modules 模块。
- `'css/auto'`:基于文件名判断,若匹配`/\.module(s)?\.[^.]+$/`则为 CSS Modules 模块,否则为 CSS 模块。
Expand Down
5 changes: 0 additions & 5 deletions website/docs/zh/guide/tech/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ const ReactRefreshPlugin = require('@rspack/plugin-react-refresh');
const isDev = process.env.NODE_ENV === 'development';

module.exports = {
experiments: {
rspackFuture: {
disableTransformByDefault: true,
},
},
// ...
mode: isDev ? 'development' : 'production',
module: {
Expand Down

0 comments on commit d64eb75

Please sign in to comment.