unplugin-typegpu
Version:
Build plugins for TypeGPU, enabling seamless JavaScript -> WGSL transpilation and improved debugging.
28 lines (24 loc) • 785 B
TypeScript
import { BunPlugin } from 'bun';
import { FilterPattern } from 'unplugin';
interface Options {
/** @default [/\.m?[jt]sx?$/] */
include?: FilterPattern;
/** @default undefined */
exclude?: FilterPattern;
/** @default undefined */
enforce?: 'post' | 'pre' | undefined;
/** @default undefined */
forceTgpuAlias?: string | undefined;
/** @default true */
autoNamingEnabled?: boolean | undefined;
/**
* Skipping files that don't contain "typegpu", "tgpu" or "use gpu".
* In case this early pruning hinders transformation, you
* can disable it.
*
* @default true
*/
earlyPruning?: boolean | undefined;
}
declare const _default: (rawOptions: Options) => BunPlugin;
export { type Options as O, _default as _ };