Enable every plugin recommended preset and replace Biome with ESLint formatting. Preserve API contracts and JSX whitespace; verify source, tests, builds and tooling.
15 lines
310 B
TypeScript
15 lines
310 B
TypeScript
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
cssFileName: "styles",
|
|
entry: { index: "src/index.ts", theme: "src/theme.ts" },
|
|
formats: ["es"],
|
|
},
|
|
rolldownOptions: {
|
|
external: /^(react(?:-dom)?|@mantine\/[^/]+|@wealthledger\/tokens)(\/|$)/,
|
|
},
|
|
},
|
|
});
|