mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
419f8c0286
* Build engine V3.0.0 Ammo.js wasm support; Multi-module engine support; Remove physics macros Lock * 3.0.1
16 lines
334 B
TypeScript
16 lines
334 B
TypeScript
|
|
export enum ModuleOption {
|
|
esm,
|
|
cjs,
|
|
system,
|
|
iife,
|
|
}
|
|
|
|
export function enumerateModuleOptionReps () {
|
|
return Object.values(ModuleOption).filter((value) => typeof value === 'string') as (keyof typeof ModuleOption)[];
|
|
}
|
|
|
|
export function parseModuleOption (rep: string) {
|
|
return Reflect.get(ModuleOption, rep);
|
|
}
|