UNPKG

react-mindee-js

Version:
26 lines (24 loc) 601 B
import { resolve } from 'path' import react from '@vitejs/plugin-react' import { defineConfig } from 'vite' import dts from 'vite-plugin-dts' export default defineConfig({ assetsInclude: ['**/*.tiff', '**/*.heic'], resolve: { alias: { '@/': new URL('./src/', import.meta.url).pathname, }, }, plugins: [react(), dts({ insertTypesEntry: true })], build: { lib: { entry: resolve(__dirname, 'src/index.ts'), name: 'React mindee js', formats: ['es'], fileName: 'index', }, rollupOptions: { external: ['react', 'react-dom'], }, }, })