@labelu/image-annotator-react
Version:
image annotator for react
26 lines (23 loc) • 633 B
text/typescript
import { resolve } from 'path';
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
import svgr from 'vite-plugin-svgr';
import type { PluginOption } from 'vite';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [peerDepsExternal() as PluginOption, tsconfigPaths(), svgr()],
build: {
lib: {
entry: 'src/index.ts',
name: 'ImageAnnotationReact',
formats: ['es', 'umd'],
fileName: 'index',
},
},
resolve: {
alias: {
'@/': resolve(__dirname, 'src'),
},
},
});