From d0af8d3bbff506d4f4caf03750c3b85c69c4f168 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Thu, 23 Dec 2021 19:25:56 +0100 Subject: use vite-plugin-wasm-pack --- web/pw-frontend/vite.config.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/pw-frontend/vite.config.js') diff --git a/web/pw-frontend/vite.config.js b/web/pw-frontend/vite.config.js index bce1f51..e52edb5 100644 --- a/web/pw-frontend/vite.config.js +++ b/web/pw-frontend/vite.config.js @@ -1,11 +1,13 @@ import { defineConfig } from 'vite' import { svelte } from '@sveltejs/vite-plugin-svelte' import { viteCommonjs } from '@originjs/vite-plugin-commonjs' +import wasmPack from 'vite-plugin-wasm-pack'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [ svelte(), + wasmPack(["./planetwars-rs"]), viteCommonjs({ transformMixedEsModules: true, }), -- cgit v1.2.3