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: { output: { sourcemap: true, format: 'iife', }, external: ["solid-js"], plugins: [] } }, });