Files
RustPython/wasm/example/src/index.js
2020-12-16 09:21:07 -06:00

7 lines
281 B
JavaScript

// A dependency graph that contains any wasm must all be imported
// asynchronously. This `index.js` file does the single async import, so
// that no one else needs to worry about it again.
import('./main.js').catch((e) => {
console.error('Error importing `main.js`:', e);
});