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.
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import solidPlugin from "vite-plugin-solid";
|
|
|
|
import path from "node:path";
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
clearScreen: false,
|
|
|
|
plugins: [
|
|
|
|
solidPlugin(),
|
|
|
|
],
|
|
|
|
server: {
|
|
|
|
port: 3000,
|
|
|
|
},
|
|
|
|
build: {
|
|
|
|
target: "esnext",
|
|
|
|
manifest: true,
|
|
|
|
lib: {
|
|
|
|
name: "pptk",
|
|
|
|
entry: {
|
|
|
|
index: path.resolve(__dirname, "src/index.js"),
|
|
|
|
solid: path.resolve(__dirname, "src/solid/index.tsx")
|
|
|
|
}
|
|
|
|
},
|
|
|
|
rollupOptions: {
|
|
|
|
external: ["solid-js"],
|
|
|
|
plugins: []
|
|
|
|
}
|
|
|
|
},
|
|
|
|
});
|