@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
12 lines (11 loc) • 699 B
TypeScript
/**
* Scans local GLB/glTF files to determine which engine components are actually used,
* then rewrites the engine's `codegen/register_types.ts` so that unused components
* are registered lazily via `TypeStore.addLazy()` instead of eagerly imported.
*
* @param {"build" | "serve"} command
* @param {import('../types/needleConfig').needleMeta | null | undefined} config
* @param {import('../types').userSettings} userSettings
* @returns {import('vite').Plugin | undefined}
*/
export function needleTreeshake(command: "build" | "serve", config: import("../types/needleConfig").needleMeta | null | undefined, userSettings: import("../types").userSettings): import("vite").Plugin | undefined;