-
-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: export and disable it by default
- Loading branch information
Showing
7 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
website/docs/en/plugins/webpack/warn-case-sensitive-modules-plugin.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ApiMeta } from '@components/ApiMeta.tsx'; | ||
|
||
# WarnCaseSensitiveModulesPlugin | ||
|
||
<ApiMeta addedVersion={'1.2.0'} /> | ||
|
||
Detect and warn about case-sensitive module naming conflicts. | ||
|
||
When compiling on a file system with other case semantics, if there are multiple modules whose names differ only in casing, it may lead to unexpected error behaviors. | ||
|
||
```js | ||
new rspack.WarnCaseSensitiveModulesPlugin(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
website/docs/zh/plugins/webpack/warn-case-sensitive-modules-plugin.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ApiMeta } from '@components/ApiMeta.tsx'; | ||
|
||
# WarnCaseSensitiveModulesPlugin | ||
|
||
<ApiMeta addedVersion={'1.2.0'} /> | ||
|
||
检测并就区分大小写的模块命名冲突发出警告。 | ||
|
||
当在具有其他大小写语义的文件系统上进行编译时,如果存在多个名称仅大小写不同的模块,可能会导致出现意外的错误行为。 | ||
|
||
```js | ||
new rspack.WarnCaseSensitiveModulesPlugin(); | ||
``` |