"use strict";function couldUseSWCMode(e){return!e.compileWorklet&&e.swc}function getSummerPluginConfig(e){const i=new Set,{disableUseStrict:s}=e;return couldUseSWCMode(e)?i.add(["swc",{disableUseStrict:s}]):(i.add("javascript"),i.add(["es6module",{disableUseStrict:s}]),e.enhance||e.es6?i.add(["enhance",{disableUseStrict:s}]):e.compileWorklet&&i.add("worklet"),e.minified&&i.add("terser")),(e.minifyWXSS||e.postcss)&&i.add("wxss"),e.minified&&i.add("wxss"),e.minifyWXML&&i.add("minifywxml"),e.useCompilerPlugins&&e.useCompilerPlugins.forEach(e=>{if("string"==typeof e)i.add(e);else{if(!Array.isArray(e))throw new Error("invalid useCompilerPlugins options: "+JSON.stringify(e));if("string"!=typeof e[0]||void 0===e[1])throw new Error("invalid useCompilerPlugins options: "+JSON.stringify(e));i.add(e)}}),Array.from(i)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSummerPluginConfig=exports.couldUseSWCMode=void 0,exports.couldUseSWCMode=couldUseSWCMode,exports.getSummerPluginConfig=getSummerPluginConfig;