-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
25 lines (24 loc) · 830 Bytes
/
vite.config.ts
File metadata and controls
25 lines (24 loc) · 830 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
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react"
import path from "path"
import {defineConfig} from "vite"
import {nodePolyfills} from "vite-plugin-node-polyfills"
import topLevelAwait from "vite-plugin-top-level-await"
import wasm from "vite-plugin-wasm"
export default defineConfig({
base: "/goboscript/ide/",
plugins: [
react({
babel: {
plugins: [["module:@preact/signals-react-transform", {mode: "all"}]]
}
}),
tailwindcss(),
wasm(),
topLevelAwait(),
nodePolyfills()
],
worker: {format: "es", plugins: () => [wasm(), topLevelAwait(), nodePolyfills()]},
resolve: {alias: {"@": path.resolve(__dirname, "./src")}},
build: {target: "esnext", sourcemap: true, emptyOutDir: true}
})