UNPKG

bootstrap-vue-next

Version:

BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.

3 lines (2 loc) 1.17 kB
"use strict";const e=require("./BootstrapVueOptions-CDXgG14N.js"),t="bootstrap-vue-next",o=(e,t)=>{const{all:o,...r}=e,n={};o&&t.forEach(e=>{n[e]=o});const s={...n,...r};return Object.entries(s).filter(([e,o])=>!!o&&t.includes(e)).map(([e])=>e)},r=new Set,n=new Set,s=Object.assign(({aliases:s={},directives:a=!0,components:i=!0}={})=>{const c=o("boolean"==typeof i?{all:i}:i,e.componentNames).reduce((o,r)=>(o.set(r,`${t}${e.componentsWithExternalPath[r]}`),o),new Map),l=o("boolean"==typeof a?{all:a}:a,e.directiveNames).reduce((o,r)=>{const n=r.toLowerCase().startsWith("v")?r:`v${r}`;return o.set(n,`${t}${e.directivesWithExternalPath[n]}`),o},new Map);return[{type:"component",resolve(e){const t=c.get(e),o=c.get(s[e]);if(o){const t=s[e];return r.add(t),{name:t,from:o}}if(t)return r.add(e),{name:e,from:t}}},{type:"directive",resolve(e){const t=`v${e}`,o=l.get(t);if(o)return n.add(t),{name:t,from:o}}}]},{__usedComponents:r,__usedDirectives:n}),a=Object.freeze(Object.defineProperty({__proto__:null,BootstrapVueNextResolver:s},Symbol.toStringTag,{value:"Module"}));exports.BootstrapVueNextResolver=s,exports.index=a; //# sourceMappingURL=index-C1KguBil.js.map