Newer
Older
imgui-js / example / index.js
@Isaac Burns Isaac Burns on 13 Feb 2018 457 bytes allow imgui_impl.ts to be used externally
/// @ts-check
/// <reference types="node"/>

process.chdir(__dirname);

global["SystemJS"] = require("systemjs");

SystemJS.config({
    paths: {
        "imgui-js": "..",
    },
    packages: {
        "imgui-js": {
            main: "imgui.js",
            defaultExtension: 'js',
            meta: { "bind-imgui.js": { exports: "Module" } }
        }
    }
});

SystemJS.import("./main")
.then(function (main) { main.default(); })
.catch(console.error);