"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ElectronCompilewxssService=void 0;const compileUtils_1=require("../node/compileUtils"),cp=require("child_process");async function compileUseWCSCElectron(e){const c=Date.now(),s=require("wcc-electron").wcsc,o=await s(Object.assign(Object.assign({},e),{debug:!0}));return console.warn("[wcsc-node] compile cost:",Date.now()-c),o}class ElectronCompilewxssService{compileWxss(e){return e.isMiniAppProject||Object.keys(e.replaceContent).length>0?compileUseWCSCElectron(e):(0,compileUtils_1.compileUseWCSC)(e)}}exports.ElectronCompilewxssService=ElectronCompilewxssService;