-
Notifications
You must be signed in to change notification settings - Fork 12
Circular dep in Wasm import #7
Comments
Additionally -
|
Worked around the circular dep in polkadot-js/common#306, made the WASM init async in polkadot-js/common#307 and fixed dependency as expression in polkadot-js/common#308 (For now, basically some adjustments to the generated files which is being maintained in that repo until there are a general solutions available) |
Last issue (that I don't have a work-around in for) is the module.exports.__wbg_require_86edd37cfda5f13d = function(arg0, arg1) {
let varg0 = getStringFromWasm(arg0, arg1);
return addHeapObject(require(varg0));
}; Cannot see why WASM would need to require. Anyway, for now will just have to deal with the warning in React apps and deal with the bug reports. (Leaning towards just removing/stubbing that and seeing if it still works) |
I've seen the warning but never really paid much attention to it as
|
I am no master in webpack and these new fancy import (back in my days there was just
Is actually what exists in the generated files originally, we are also writing it again as a part of our **fix import **. |
Yeap, it is a |
Basically webpack displays this -
Due to
schnorrkel_js.js
importingschnorrkel_js_bg.js
and that requiringschnorrkel_js.js
The text was updated successfully, but these errors were encountered: