mirror of
https://github.com/hanzoai/quickjs-emscripten.git
synced 2026-10-30 19:37:29 +00:00
* improve error unwrapping fidelity * add purejs variant * call it asmjs * regen * add test * yarn lock * regen doc * bring over bun example * implement enough fs stuff to get example to run * quickjs-for-quickjs * progress * fix package name * regen * d.mts * prettier * changelog * maybe we messed up stack size? * fix stack size * turn off ttylog * lint * update changelog * bump version * upgrade emscripten * regen makefile
23 lines
526 B
TypeScript
23 lines
526 B
TypeScript
import type { Options } from "tsup"
|
|
import { defineConfig } from "tsup"
|
|
|
|
const baseConfig = defineConfig((_options) => ({
|
|
entry: ["src/index.ts"],
|
|
sourcemap: true,
|
|
dts: true,
|
|
clean: true,
|
|
format: ["cjs", "esm"],
|
|
minifySyntax: true,
|
|
minifyWhitespace: true,
|
|
})) as (options: Options) => Options
|
|
|
|
export function extendConfig(options: Options = {}) {
|
|
return defineConfig((config) => {
|
|
const base = baseConfig(config)
|
|
return {
|
|
...base,
|
|
...options,
|
|
}
|
|
}) as (options: Options) => Options
|
|
}
|