@specs-feup/lara
Version:
A js port of the popular framework for building source-to-source compilers
15 lines (13 loc) • 329 B
text/typescript
const prefix = "@specs-feup/lara/api/";
const coreImports = [
"core/output.js",
"lara/core/LaraCore.js",
"LaraJoinPoint.js",
];
for (const coreImport of coreImports) {
const foo = Object.entries(await import(prefix + coreImport));
foo.forEach(([key, value]) => {
// @ts-ignore
globalThis[key] = value;
});
}