Files
fluent-dom-esm/vite.config.js
Eric Woodward 96c8f980e9 update to v2.3.0
add `.rep()` & `.replaceChildren()` function
update `.app()` & `.append()` to support rest params
update build target to ES6
fix comment color on demo page
add (more) tests
2025-09-13 19:44:55 -04:00

24 lines
567 B
JavaScript

import dts from 'unplugin-dts/vite'
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vite';
const __dirname = dirname(fileURLToPath(import.meta.url));
export default defineConfig({
plugins: [dts({exclude: ["./vitest.setup.ts", "**/*.test.ts"]})],
build: {
lib: {
entry: resolve(__dirname, 'src/fluent-dom-esm.ts'),
name: 'fluent-dom-esm',
fileName: 'fluent-dom-esm',
formats: ['es'],
outDir: './dist'
},
minify: false
},
test: {
setupFiles: ["./vitest.setup.ts"]
},
});