Frontend/25_01_07/mai/node_modules/psl/vite.config.js

21 lines
431 B
JavaScript
Raw Normal View History

2025-01-28 10:38:27 +00:00
import { resolve } from 'node:path';
import { defineConfig } from 'vite';
export default defineConfig({
build: {
target: 'es2015',
lib: {
entry: resolve(__dirname, 'index.js'),
name: 'psl',
formats: ['es', 'cjs', 'umd'],
fileName: format => (
format === 'umd'
? 'psl.umd.cjs'
: format === 'cjs'
? 'psl.cjs'
: 'psl.mjs'
),
},
},
});