presetter-kernel-module-preset/templates/vite.config.js

14 lines
359 B
JavaScript
Raw Normal View History

2023-07-08 06:07:37 +00:00
import { defineConfig } from "vite";
import optimizer from "vite-plugin-optimizer";
import { nodePolyfills } from "vite-plugin-node-polyfills";
2023-07-08 07:24:11 +00:00
import wasm from "vite-plugin-wasm";
2023-07-08 06:07:37 +00:00
export default defineConfig({
build: {viteBuild},
resolve: {viteResolve},
plugins: [
2023-07-08 07:24:11 +00:00
wasm(),
2023-07-08 06:07:37 +00:00
optimizer({viteOptimize}),
nodePolyfills({vitePolyfill}),
],
});