21 lines
567 B
TypeScript
21 lines
567 B
TypeScript
import { resolve } from "node:path";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
build: {
|
|
outDir: "dist",
|
|
emptyOutDir: true,
|
|
lib: {
|
|
entry: resolve(__dirname, "src/index.ts"),
|
|
formats: ["es"],
|
|
fileName: "index",
|
|
cssFileName: "style",
|
|
},
|
|
// V2 intentionally has no vue-router dependency. Vue is supplied by the
|
|
// consuming application so every scene shares the application's renderer.
|
|
rollupOptions: { external: ["vue"] },
|
|
},
|
|
});
|