@wllama/wllama
Version:
WebAssembly binding for llama.cpp - Enabling on-browser LLM inference
24 lines (19 loc) • 404 B
text/typescript
import type { Options } from 'tsup';
const baseConfig: Options = {
entry: ['./index.ts'],
format: ['cjs', 'esm'],
outDir: 'esm',
clean: true,
};
// const nodeConfig: Options = {
// ...baseConfig,
// platform: "node",
// };
const browserConfig: Options = {
...baseConfig,
platform: 'browser',
target: 'es2015',
splitting: false,
outDir: 'esm',
};
export default [browserConfig];