* feat: extract pure core api * refactor: centralize core api helpers * build: bundle core api output
18 lines
365 B
TypeScript
18 lines
365 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
emptyOutDir: true,
|
|
lib: {
|
|
entry: fileURLToPath(new URL("./src/core.ts", import.meta.url)),
|
|
fileName: () => "core.js",
|
|
formats: ["es"],
|
|
},
|
|
outDir: "lib",
|
|
rollupOptions: {
|
|
external: [],
|
|
},
|
|
},
|
|
});
|