htmgo/js/tsup.config.ts

24 lines
444 B
TypeScript
Raw Normal View History

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