Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Sep 20, 2024
1 parent f189c38 commit c9bacc1
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/config/source/exclude.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
### Not compiled vs Not bundled

`source.exclude` is used to specify JavaScript/TypeScript files that do not need to be compiled. This means that these files will not be translated by `swc` or `babel`, but they will still be bundled into the outputs (if referenced).
`source.exclude` is used to specify JavaScript/TypeScript files that do not need to be compiled. This means that these files will not be translated by SWC or Babel, but they will still be bundled into the outputs (if referenced).

If you want certain files to be ignored and not bundled into the outputs, you can use Rspack's [IgnorePlugin](https://rspack.dev/plugins/webpack/ignore-plugin).

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/config/source/exclude.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
### 不编译 vs 不打包

`source.exclude` 用于指定不需要编译的 JavaScript/TypeScript 文件。这意味着这些文件不会经过 `swc` / `babel` 转译,但这些文件仍然会被打包到产物中(如果被引用)。
`source.exclude` 用于指定不需要编译的 JavaScript/TypeScript 文件。这意味着这些文件不会经过 SWC 或 Babel 转译,但这些文件仍然会被打包到产物中(如果被引用)。

如果你希望某些文件在打包过程中被忽略,不被打包到产物中,可以使用 Rspack 的 [IgnorePlugin](https://rspack.dev/zh/plugins/webpack/ignore-plugin)

Expand Down

0 comments on commit c9bacc1

Please sign in to comment.