2024-01-16 20:52:47 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import solidPlugin from "vite-plugin-solid";
|
|
|
|
import wasm from "vite-plugin-wasm";
|
2024-01-16 05:44:06 +00:00
|
|
|
// import devtools from 'solid-devtools/vite';
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [
|
|
|
|
/*
|
|
|
|
Uncomment the following line to enable solid-devtools.
|
|
|
|
For more info see https://github.com/thetarnav/solid-devtools/tree/main/packages/extension#readme
|
|
|
|
*/
|
|
|
|
// devtools(),
|
|
|
|
solidPlugin(),
|
2024-01-16 20:52:47 +00:00
|
|
|
wasm(),
|
2024-01-16 05:44:06 +00:00
|
|
|
],
|
|
|
|
server: {
|
|
|
|
port: 3000,
|
|
|
|
},
|
|
|
|
build: {
|
2024-01-16 20:52:47 +00:00
|
|
|
target: "esnext",
|
|
|
|
},
|
|
|
|
worker: {
|
|
|
|
// Not needed with vite-plugin-top-level-await >= 1.3.0
|
|
|
|
// format: "es",
|
|
|
|
plugins: [wasm()],
|
2024-01-16 05:44:06 +00:00
|
|
|
},
|
|
|
|
});
|