Open allidoisace opened 2 years ago
I was able to to fix this by using this webpack config (using craco for example):
module.exports = {
webpack: {
configure: (config) => {
config.experiments = {
asyncWebAssembly: true,
};
config.module.rules.push({
test: /\.(wasm)$/,
type: "webassembly/async",
});
return config;
},
},
};
Will have to see if I can accomplish this with Vite.
Runtime
index.tsx
As posted in an issue elsewhere, they recommended changing the
.d.ts
names, but they are already present in this version. https://github.com/rustwasm/wasm-bindgen/issues/2200Build Warnings