2023-11-06 02:22:33 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import dtsPlugin from "vite-plugin-dts";
|
|
|
|
import autoExternalPlugin from "rollup-plugin-auto-external";
|
2023-04-07 16:39:59 +00:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [
|
2023-10-02 03:23:22 +00:00
|
|
|
dtsPlugin({ rollupTypes: true }),
|
2023-04-07 16:39:59 +00:00
|
|
|
autoExternalPlugin()
|
|
|
|
],
|
|
|
|
build: {
|
|
|
|
sourcemap: true,
|
|
|
|
minify: false,
|
|
|
|
lib: {
|
|
|
|
entry: './src/client.ts',
|
2023-10-02 03:23:22 +00:00
|
|
|
fileName: () => 'facilmap-client.mjs',
|
2023-04-07 16:39:59 +00:00
|
|
|
formats: ['es']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|