怎么在插件中获取所有bundle的名字

Creator 版本: 2.4.3
要求:需要在构建之前获取

或者说,怎么知道编辑器配置了哪些文件夹为bundle

bundle在meta中有个标记······
“isBundle”: true,

这样的话就得扫描所有的meta文件,很慢