20 lines
511 B
TypeScript
20 lines
511 B
TypeScript
import { defineConfig } from "vite";
|
|
import dts from "vite-plugin-dts";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: {
|
|
index: "./src/index.ts",
|
|
"colour-convert-hsluv/colour-convert-hsluv": "./src/colour-convert-hsluv/index.ts",
|
|
},
|
|
formats: ["es"],
|
|
},
|
|
sourcemap: true,
|
|
rollupOptions: {
|
|
external: [/^@suaveplan\//, "tslib"],
|
|
},
|
|
},
|
|
plugins: [dts({ rollupTypes: false, include: ["src/**/*.ts"], tsconfigPath: "./tsconfig.lib.json" })],
|
|
});
|