anki/ts/editor/index_wrapper.ts
2021-07-06 03:48:33 +02:00

12 lines
386 B
TypeScript

// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
// extend the global namespace with our exports - not sure if there's a better way with esbuild
import * as globals from "./index";
for (const key in globals) {
window[key] = globals[key];
}
// but also export as window.anki
window["anki"] = globals;