planet-wars/frontend/www/bootstrap.js
ajuvercr 998cb3d535
Frontend/visualiser: enhancement show ship_count in visualiser (#23)
* make all fleets fly forward

* make things beautiful
2020-04-17 21:03:43 +02:00

21 lines
No EOL
585 B
JavaScript

// 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.
// Import index.js that executes index.ts
var h = (_a, _b) => {}
export function handle(loc, e) {
h(loc, e);
}
if (typeof mergeInto !== 'undefined') mergeInto(LibraryManager.library, {
print: function() {
console.log("Hello world");
}
});
import ("./index.js")
.then(e => {
h = e.handle;
})
.catch(e => console.error("Error importing `index.js`:", e));