Closed cesarecaoduro closed 1 year ago
Any reproduce?
Hi @Menci, here you go... https://github.com/cesarecaoduro/nuxt-occ
Your WASM package is NOT one with esm-integration.
The opencascade.full.js
is even not an ESM file. It's a handwriteen (or generated) WASM file loader. Following the declaration and guide, you shoud call init()
to fetch and initialize the WASM module and it has nothing to do with this plugin. Maybe vite-plugin-top-level-await could help you since you need to await init()
.
Found a sample for you to use it with Vite. Note that you don't need this plugin.
I am trying to use a wasm with Nuxt3 but it keeps failing...anyone that can help me with configuration?
nuxt.config.ts