You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use this package inside Atom, which is an Electron app. I used the following code to load and instantiate the wasm module asynchronously because Electron doesn't allow compiling large wasm files on the main thread.
if(markdown_parse===undefined){// wasm should be loaded async// @ts-ignoreconstmarkdown_wasm=(awaitimport("markdown-wasm/dist/markdown.es"))astypeofimport("markdown-wasm")&{ready: Promise<void>}// instantiate wasmawaitmarkdown_wasm.readymarkdown_parse=markdown_wasm.parse}
I use Rollup as my compiler.
However, when I bundle the application I get these errors:
TypeError: Cannot set property exports of undefined
The text was updated successfully, but these errors were encountered:
I am trying to use this package inside Atom, which is an Electron app. I used the following code to load and instantiate the wasm module asynchronously because Electron doesn't allow compiling large wasm files on the main thread.
I use Rollup as my compiler.
However, when I bundle the application I get these errors:
TypeError: Cannot set property exports of undefined
The text was updated successfully, but these errors were encountered: