mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
21 lines
442 B
TypeScript
21 lines
442 B
TypeScript
import Module from 'module';
|
|
|
|
// @ts-strict-ignore
|
|
import fetch from 'node-fetch';
|
|
|
|
import './setRequireHook';
|
|
|
|
Module.globalPaths.push(__dirname + '/..');
|
|
global.fetch = fetch;
|
|
|
|
const lazyLoadBackend = async (isDev: boolean) => {
|
|
// eslint-disable-next-line import/extensions
|
|
const bundle = await import('loot-core/lib-dist/bundle.desktop.js');
|
|
bundle.initApp(isDev);
|
|
};
|
|
|
|
const isDev = false;
|
|
|
|
// Start the app
|
|
lazyLoadBackend(isDev);
|