2019-09-13 22:54:21 +02:00
|
|
|
// A dependency graph that contains any wasm must all be imported
|
|
|
|
// asynchronously. This `bootstrap.js` file does the single async import, so
|
|
|
|
// that no one else needs to worry about it again.
|
2019-09-17 18:27:44 +02:00
|
|
|
// Import index.js that executes index.ts
|
2020-04-17 21:03:43 +02:00
|
|
|
var h = (_a, _b) => {}
|
2020-03-27 15:26:04 +01:00
|
|
|
|
|
|
|
export function handle(loc, e) {
|
|
|
|
h(loc, e);
|
|
|
|
}
|
|
|
|
|
2020-04-17 21:03:43 +02:00
|
|
|
if (typeof mergeInto !== 'undefined') mergeInto(LibraryManager.library, {
|
|
|
|
print: function() {
|
|
|
|
console.log("Hello world");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2020-04-20 15:38:11 +02:00
|
|
|
import ("./src/index.js")
|
2020-04-17 21:03:43 +02:00
|
|
|
.then(e => {
|
2020-03-27 15:26:04 +01:00
|
|
|
h = e.handle;
|
|
|
|
})
|
2020-04-17 21:03:43 +02:00
|
|
|
.catch(e => console.error("Error importing `index.js`:", e));
|