aboutsummaryrefslogtreecommitdiff
path: root/web/pw-frontend/vite.config.js
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2021-12-23 19:25:56 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2021-12-23 19:25:56 +0100
commitd0af8d3bbff506d4f4caf03750c3b85c69c4f168 (patch)
tree317b9c2033af3f631dfeb12e064b43d0548e09c8 /web/pw-frontend/vite.config.js
parentc26f72890f934d654742328702661f0bd73b7582 (diff)
downloadplanetwars.dev-d0af8d3bbff506d4f4caf03750c3b85c69c4f168.tar.xz
planetwars.dev-d0af8d3bbff506d4f4caf03750c3b85c69c4f168.zip
use vite-plugin-wasm-pack
Diffstat (limited to 'web/pw-frontend/vite.config.js')
-rw-r--r--web/pw-frontend/vite.config.js2
1 files changed, 2 insertions, 0 deletions
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,
}),