mirror of https://github.com/halo-dev/halo
20 lines
438 B
TypeScript
20 lines
438 B
TypeScript
import { defineConfig } from "tsdown";
|
|
import { fileURLToPath, URL } from "url";
|
|
|
|
export default defineConfig({
|
|
entry: ["./src/index.ts"],
|
|
format: ["esm", "iife"],
|
|
external: ["vue", "vue-router"],
|
|
platform: "browser",
|
|
globalName: "HaloConsoleShared",
|
|
tsconfig: "./tsconfig.app.json",
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
minify: true,
|
|
exports: true,
|
|
dts: {
|
|
tsgo: true,
|
|
},
|
|
});
|