Skip to content
Snippets Groups Projects
server.js 351 B
Newer Older
  • Learn to ignore specific revisions
  • James Long's avatar
    James Long committed
    require('./setRequireHook');
    require('module').globalPaths.push(__dirname + '/..');
    
    global.fetch = require('node-fetch');
    
    
    // Lazy load backend code
    
    James Long's avatar
    James Long committed
    function getBackend() {
    
      // eslint-disable-next-line import/extensions
    
    James Long's avatar
    James Long committed
      return require('loot-core/lib-dist/bundle.desktop.js');
    }
    
    
    James Long's avatar
    James Long committed
    
    
    // Start the app
    getBackend().initApp(isDev);