UNPKG

@gyenno/nutui-taro

Version:

京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)

25 lines (24 loc) 602 B
const a = ["showToast", "showNotify", "showDialog", "showImagePreview"]; function u(t, e) { const { taro: o = !1, autoImport: n = !1 } = e, s = o ? "@gyenno/nutui-taro" : "@nutui/nutui", r = n ? t.slice(4) : t, c = `${s}/dist/packages/${r.toLowerCase()}/style`; return { name: t, from: s, sideEffects: c }; } function i(t = {}) { return { type: "component", resolve: (e) => { const { autoImport: o = !1 } = t; if (o && a.includes(e)) return u(e, t); if (e.startsWith("Nut")) return u(e.slice(3), t); } }; } export { i as default };