mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-21 14:38:47 +00:00
22c6eabd13
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
30 lines
543 B
TypeScript
30 lines
543 B
TypeScript
import { resolve } from "path"
|
|
import { defineConfig } from "vite"
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
outDir: "./dist",
|
|
emptyOutDir: true,
|
|
lib: {
|
|
entry: {
|
|
web: "./src/web/index.ts",
|
|
node: "./src/node/index.ts",
|
|
},
|
|
name: "js-sandbox",
|
|
formats: ["es", "cjs"],
|
|
},
|
|
rollupOptions: {
|
|
external: ["module"],
|
|
},
|
|
},
|
|
test: {
|
|
environment: "node",
|
|
setupFiles: ["./setupFiles.ts"],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"~": resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
})
|