Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support inline enum and update rollup/terser version to latest. #65

Merged
merged 22 commits into from
Sep 19, 2024

Conversation

dumganhar
Copy link
Collaborator

No description provided.

strDefines['Uint32Array.BYTES_PER_ELEMENT'] = '4';
strDefines['Int8Array.BYTES_PER_ELEMENT'] = '1';
strDefines['Int16Array.BYTES_PER_ELEMENT'] = '2';
strDefines['Int32Array.BYTES_PER_ELEMENT'] = '4';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also inline BYTES_PER_ELEMENT

@dumganhar dumganhar changed the title Support inline enum and update rollup/terser version. Support inline enum and update rollup/terser version to latest. Aug 12, 2024
@dumganhar dumganhar requested a review from minggo August 12, 2024 09:03
keep_fnames: !doUglify,
mangle: {
properties: {
regex: /^[a-zA-Z_][a-zA-Z0-9_]{3,}\$$/,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support minify properties of which name ends with $

dumganhar added a commit to dumganhar/cocos-engine that referenced this pull request Aug 12, 2024
…s to reduce js size.

Add WebGLConstants.ts for inlining enums. Depends on: cocos/cocos-ccbuild#65
dumganhar added a commit to dumganhar/cocos-engine that referenced this pull request Sep 13, 2024
…s to reduce js size.

Add WebGLConstants.ts for inlining enums. Depends on: cocos/cocos-ccbuild#65
@dumganhar dumganhar merged commit 6d7dbe1 into cocos:master Sep 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants