mirror of
https://github.com/halo-dev/halo.git
synced 2025-12-20 16:44:38 +08:00
#### What type of PR is this? /area ui /kind api-change /milestone 2.22.x #### What this PR does / why we need it: See #7925 #### Which issue(s) this PR fixes: Fixes #7925 #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 将 `@halo-dev/console-shared` 重命名为 `@halo-dev/ui-shared` ```
29 lines
661 B
TypeScript
29 lines
661 B
TypeScript
import { fileURLToPath, URL } from "node:url";
|
|
import { defineConfig } from "tsdown";
|
|
|
|
export default defineConfig({
|
|
entry: ["./src/index.ts"],
|
|
format: ["esm", "iife"],
|
|
external: ["vue", "vue-router", "pinia", "@halo-dev/api-client"],
|
|
noExternal: ["mitt"],
|
|
outputOptions: {
|
|
globals: {
|
|
vue: "Vue",
|
|
"vue-router": "VueRouter",
|
|
pinia: "Pinia",
|
|
"@halo-dev/api-client": "HaloApiClient",
|
|
},
|
|
},
|
|
platform: "browser",
|
|
globalName: "HaloUiShared",
|
|
tsconfig: "./tsconfig.app.json",
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
minify: true,
|
|
exports: true,
|
|
dts: {
|
|
tsgo: true,
|
|
},
|
|
});
|