forked from hsaraujo/lightning-flow-scanner-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
28 lines (26 loc) · 675 Bytes
/
vite.config.ts
File metadata and controls
28 lines (26 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { resolve } from "path";
import { defineConfig } from "vite";
import { nodePolyfills } from "vite-plugin-node-polyfills";
export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, "src/index.ts"),
formats: ["umd", "cjs"],
name: "lightningflowscanner",
},
minify: true,
rollupOptions: {
external: ["xmlbuilder2"],
output: {
globals: {
fs: "fs",
path: "path",
xmlbuilder2: "xmlbuilder2",
},
},
},
ssr: false,
},
plugins: [nodePolyfills({ include: ["path", "fs"], protocolImports: true })],
resolve: { alias: { src: resolve("src/") } },
});