21 lines
569 B
TypeScript
21 lines
569 B
TypeScript
import { defineConfig } from "vite";
|
|
import * as path from "@std/path";
|
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [svelte()],
|
|
build: {
|
|
rollupOptions: {
|
|
input: path.fromFileUrl(
|
|
new URL("./src/TableViewer.svelte", import.meta.url),
|
|
),
|
|
output: {
|
|
dir: path.fromFileUrl(new URL("../js_dist", import.meta.url)),
|
|
entryFileNames: "[name].js",
|
|
chunkFileNames: "[name].js",
|
|
assetFileNames: "[name].[ext]",
|
|
},
|
|
},
|
|
},
|
|
});
|