-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ai): 启用serverMinification,使用--no-mangling (#1218)
启用AI项目的服务器端代码优化serverMinification,只使用`--no-mangling`和`swcMinify: false`来关闭name mangling以解决[这个问题](https://github.com/mikro-orm/mikro-orm/issues/5487)。理论上来说应该只要`--no-mangling`就行,但是应该还是next的bug ( vercel/next.js#50208 ),必须还要同时设置`swcMinify: false`才可以。
- Loading branch information
Showing
3 changed files
with
8 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@scow/ai": patch | ||
--- | ||
|
||
启用 serverMinification,只关闭 name mangling |
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