12 |
- var a=Object.defineProperty;var f=e=>a(e,"__esModule",{value:!0});var x=(e,o)=>{f(e);for(var t in o)a(e,t,{get:o[t],enumerable:!0})};x(exports,{default:()=>M,globalExternals:()=>p,globalExternalsWithRegExp:()=>l});var i=e=>{let{type:o="esm",varName:t,namedExports:r=null,defaultExport:n=!0}=typeof e=="string"?{varName:e}:e;return{type:o,varName:t,namedExports:r,defaultExport:n}};var g=e=>`module.exports = ${e};`;var c=(e,o,t)=>{let r=t?[`export default ${e};`]:[];if(o&&o.length){let n=[...new Set(o)].join(", ");r.push(`const { ${n} } = ${e};`),r.push(`export { ${n} };`)}return r.join(`
- `)},d=e=>{let{type:o,varName:t,namedExports:r,defaultExport:n}=e;switch(o){case"esm":return c(t,r,n);case"cjs":return g(t)}};var s="global-externals",l=e=>{let{modulePathFilter:o,getModuleInfo:t}=e;return{name:s,setup(r){r.onResolve({filter:o},n=>({path:n.path,namespace:s})),r.onLoad({filter:/.*/,namespace:s},n=>{let m=n.path,u=i(t(m));return{contents:d(u)}})}}};var p=e=>{let o={modulePathFilter:new RegExp(`^(?:${Object.keys(e).join("|")})$`),getModuleInfo:t=>e[t]};return l(o)};var M=p;0&&(module.exports={globalExternals,globalExternalsWithRegExp});
|