json-theme-even-fork/vite.config.js

22 lines
468 B
JavaScript

import { defineConfig } from 'vite'
import pkg from './package.json' assert { type: 'json' }
export default defineConfig({
build: {
copyPublicDir: false,
lib: {
entry: './index.js',
fileName: 'index',
formats: ['es', 'cjs', 'umd'],
name: 'jsonresumeThemeEven',
},
rollupOptions: {
external: [...Object.keys(pkg.dependencies), /^node:.*/],
},
target: 'esnext',
test: {
clearMocks: true,
},
},
})