Files
Jake Teton-LandisandGitHub 243d82eaf3 quickjs for quickjs (#137)
* 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
2024-09-07 20:15:42 +00:00

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
}