'use strict'; const process = require('node:process'); function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; } const process__default = /*#__PURE__*/_interopDefaultCompat(process); const processShim = typeof process__default !== "undefined" ? process__default : {}; const envShim = processShim.env || {}; const platform = envShim.UNI_PLATFORM; const isH5 = platform === "h5"; function MotResolver() { return { type: "component", resolve: (name) => { if (name.match(/^(Mot[A-Z]|mot-[a-z])/)) { const cName = name.slice(3).replace(/([a-z])/, "$1").toLowerCase(); const component = `motui-uniapp/components/${cName}/${cName}.vue`; const style = `motui-uniapp/components/${cName}/index.scss`; return { name, from: component, sideEffects: isH5 ? style : "" }; } } }; } exports.MotResolver = MotResolver;