Makes "@aztec/aztec.js" work with Vite.
npm install @shieldswap/vite-plugin-aztec -D
@aztec
packages versions must be pinned in order for this plugin to work correctly. So, remove ^
symbols from package.json:
- "@aztec/aztec.js": "^0.52.0",
+ "@aztec/aztec.js": "0.52.0",
And add aztec
to your list of plugins:
import { aztec } from "@shieldswap/vite-plugin-aztec";
export default defineConfig({
plugins: [aztec()],
});