(
features: Iterable<LuaLibFeature>,
luaTarget: LuaTarget,
emitHost: EmitHost
)
| 278 | } |
| 279 | |
| 280 | export function buildMinimalLualibBundle( |
| 281 | features: Iterable<LuaLibFeature>, |
| 282 | luaTarget: LuaTarget, |
| 283 | emitHost: EmitHost |
| 284 | ): string { |
| 285 | const code = loadInlineLualibFeatures(features, luaTarget, emitHost); |
| 286 | const moduleInfo = getLuaLibModulesInfo(luaTarget, emitHost); |
| 287 | const exports = Array.from(features).flatMap(feature => moduleInfo[feature].exports); |
| 288 | |
| 289 | return code + getLualibBundleReturn(exports); |
| 290 | } |
| 291 | |
| 292 | export function findUsedLualibFeatures( |
| 293 | luaTarget: LuaTarget, |
no test coverage detected