fix type issues with root object wrapping node or querySelector fix incorrect import in demo fix unused options in vite.config.js add (some) tests - more to come!
20 lines
494 B
JavaScript
20 lines
494 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: ["./setupTests.ts", "**/*.test.ts"]})],
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, 'src/fluent-dom-esm.ts'),
|
|
name: 'fluent-dom-esm',
|
|
fileName: 'fluent-dom-esm',
|
|
formats: ['es']
|
|
},
|
|
minify: false
|
|
}
|
|
});
|