This repository contains 2 packages that demonstrate a bug in Vite.
This is a test NPM package that contains a WebAssembly module.
The WebAssembly module exports a single function fac(n: number): number
that calculates the factorial of n
.
This is a test Vite project that imports test-wasm-library
.
- Under directory
test-wasm-library
, runnpm pack
. - Under directory
test-asset-import-meta-url
,- run
npm install
. - run
npm run dev
, and open the browser.
- run