mirror of
https://github.com/rzmk/czv.git
synced 2025-12-27 19:27:00 +00:00
docs: add WASM library demo using Vite & React
This commit is contained in:
parent
bc05a9f46e
commit
93bc82bd36
27 changed files with 534 additions and 111 deletions
13
czv-wasm/examples/web-demo/vite.config.ts
Normal file
13
czv-wasm/examples/web-demo/vite.config.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import path from "path";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import wasmPack from "vite-plugin-wasm-pack";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react(), wasmPack([], ["czv-wasm"])],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue