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
24 lines
567 B
JavaScript
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"]
|
|
},
|
|
});
|