You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
408 B

import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js";
export default defineConfig({
plugins: [cssInjectedByJsPlugin(), solidPlugin()],
build: {
lib: {
entry: "./src/index.tsx",
name: "index.js",
fileName: () => "index.js",
formats: ["es"],
},
target: "esnext",
},
});