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