cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
8.83k stars 2.05k forks source link

[optimization] Decorator information that used only in editor should be stripped in release build. #17905

Open dumganhar opened 4 days ago

dumganhar commented 4 days ago

Currently, decorator information that used only in editor in user's code is not stripped.

For example,

@property({ displayName: 'balabala', tooltip: 'balabala' })