htmgo/framework/assets/js/tsup.config.ts
2024-09-23 10:57:59 -05:00

24 lines
463 B
TypeScript

import { defineConfig } from "tsup";
export default defineConfig({
format: ["esm"],
entry: ["htmgo.ts"],
outDir: "./../dist",
dts: false,
shims: true,
skipNodeModulesBundle: true,
clean: false,
target: "esnext",
treeshake: true,
platform: "browser",
outExtension: () => {
return {
js: ".js",
};
},
minify: true,
bundle: true,
splitting: true,
// https://github.com/egoist/tsup/issues/619
noExternal: [/(.*)/],
});