-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[v3.8.6] Strip jsb-utils.ts #18161
[v3.8.6] Strip jsb-utils.ts #18161
Conversation
👍 Package size ⤵ -588 bytes, old: 5270176, new: 5269588Interface Check ReportThis pull request does not change any public interfaces ! |
@cocos-robot run test cases |
@dumganhar, Please check the result of
Task Details |
@dumganhar, Please check the result of
Task Details |
import { getUrlWithUuid } from '../asset-manager/helper'; | ||
import { patch_cc_Asset } from '../../native-binding/decorators'; | ||
import type { Asset as JsbAsset } from './asset'; | ||
import type { AssetManager } from '../asset-manager'; | ||
import { ExtraEventMethods } from '../../core/utils/jsb-utils'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After doing this, we can not make core as a module in future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's estimate that in the future.
In fact, importing classes from the path is good for treeshaking
.
If we export ExtraEventMethods
from 'core' and import it from 'core' here, jsb-utils
will not be able to be cut by rollup treeshaking
.
Re: #
Changelog
Continuous Integration
This pull request:
Compatibility Check
This pull request: