UNPKG

@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.

22 lines (21 loc) 960 B
/** * Returns true when \`@needle-tools/engine\` is installed as a local package * (i.e. it has its own nested `node_modules`). Vite's optimiser must skip such * packages, otherwise it tries to pre-bundle source that was never meant to be * pre-bundled and fails at dev-server start. * * @param {string} [root] – project root; defaults to `process.cwd()`. * @returns {boolean} */ export function isLocalNeedleEngineInstalled(root?: string): boolean; /** * @param {"build" | "serve"} command * @param {import('../types/needleConfig').needleMeta | null | undefined} config * @param {import('../types').userSettings} userSettings * @returns {import('vite').Plugin[]} */ export function needleDependencies(command: "build" | "serve", config: import("../types/needleConfig").needleMeta | null | undefined, userSettings: import("../types").userSettings): import("vite").Plugin[]; /** * @type {string[]} */ export const preloadScriptPaths: string[];