htmgo/framework/assets/js/tsup.config.ts

25 lines
464 B
TypeScript
Raw Normal View History

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