import './check-node.mjs'; // Set this before importing Vite: the desktop terminal can inherit development mode. process.env.NODE_ENV = 'production'; const { build } = await import('vite'); await build({ mode: 'production' });