Skip to content

Commit

Permalink
Add build-engine option "generateDecoratorsForJSB" and "visualize" (#58)
Browse files Browse the repository at this point in the history
* Add option generateDecoratorsForJSB

* 2.2.6

* Add build-engine option visualize.
  • Loading branch information
dumganhar authored Feb 23, 2024
1 parent 02eb2de commit 0f613c4
Show file tree
Hide file tree
Showing 7 changed files with 1,403 additions and 50 deletions.
7 changes: 7 additions & 0 deletions .api/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ declare module "@cocos/ccbuild" {
* @default false
*/
preserveType?: boolean;
visualize?: boolean | {
file?: string;
};
/**
* Generate cocos/native-binding/decorators.ts for native platforms
*/
generateDecoratorsForJSB?: boolean;
/**
* Whether to generate a json file that contains all output script file paths.
*/
Expand Down
3 changes: 3 additions & 0 deletions modules/build-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@
"@types/semver": "~7.5.0",
"@types/node": "~20.3.3",
"@types/glob": "~7.2.0"
},
"optionalDependencies": {
"rollup-plugin-visualizer": "5.9.2"
}
}
Loading

0 comments on commit 0f613c4

Please sign in to comment.