@visulima/packem 1.6.4 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/builder/typedoc/index.cjs +2 -2
- package/dist/builder/typedoc/index.d.cts +2 -2
- package/dist/builder/typedoc/index.d.mts +2 -2
- package/dist/builder/typedoc/index.d.ts +2 -2
- package/dist/builder/typedoc/index.mjs +3 -3
- package/dist/cli.mjs +24 -24
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.d.ts +3 -3
- package/dist/packem.cjs +9 -9
- package/dist/packem.d.cts +3 -3
- package/dist/packem.d.mts +3 -3
- package/dist/packem.d.ts +3 -3
- package/dist/packem.mjs +21 -21
- package/dist/packem_shared/{Mime-BsyBfmma.cjs → Mime-B8VUfQZ4.cjs} +1 -1
- package/dist/packem_shared/{Mime-CNzz9C62.mjs → Mime-BhRZQHGy.mjs} +1 -1
- package/dist/packem_shared/{types-CaDbpbAk.d.mts → types-9j5aBtpH.d.mts} +3 -3
- package/dist/packem_shared/{types-lk8-9Jo6.d.ts → types-C2B7YY5i.d.ts} +3 -3
- package/dist/packem_shared/{types-BLR6WWv2.d.ts → types-Cxx27LIj.d.cts} +1 -1
- package/dist/packem_shared/{types-BLR6WWv2.d.cts → types-Cxx27LIj.d.mts} +1 -1
- package/dist/packem_shared/{types-BLR6WWv2.d.mts → types-Cxx27LIj.d.ts} +1 -1
- package/dist/packem_shared/{types-DYhavt9g.d.cts → types-DuwCnNZN.d.cts} +3 -3
- package/dist/packem_shared/{url-I6Jx3crl.mjs → url-DQUPWlUq.mjs} +1 -1
- package/dist/rollup/plugins/css/loaders/less/index.d.cts +2 -2
- package/dist/rollup/plugins/css/loaders/less/index.d.mts +2 -2
- package/dist/rollup/plugins/css/loaders/less/index.d.ts +2 -2
- package/dist/rollup/plugins/css/loaders/less/index.mjs +1 -1
- package/dist/rollup/plugins/css/loaders/lightningcss.d.cts +2 -2
- package/dist/rollup/plugins/css/loaders/lightningcss.d.mts +2 -2
- package/dist/rollup/plugins/css/loaders/lightningcss.d.ts +2 -2
- package/dist/rollup/plugins/css/loaders/postcss/index.cjs +1 -1
- package/dist/rollup/plugins/css/loaders/postcss/index.d.cts +2 -2
- package/dist/rollup/plugins/css/loaders/postcss/index.d.mts +2 -2
- package/dist/rollup/plugins/css/loaders/postcss/index.d.ts +2 -2
- package/dist/rollup/plugins/css/loaders/postcss/index.mjs +2 -2
- package/dist/rollup/plugins/css/loaders/sass/index.d.cts +2 -2
- package/dist/rollup/plugins/css/loaders/sass/index.d.mts +2 -2
- package/dist/rollup/plugins/css/loaders/sass/index.d.ts +2 -2
- package/dist/rollup/plugins/css/loaders/sass/index.mjs +1 -1
- package/dist/rollup/plugins/css/loaders/sourcemap.d.cts +2 -2
- package/dist/rollup/plugins/css/loaders/sourcemap.d.mts +2 -2
- package/dist/rollup/plugins/css/loaders/sourcemap.d.ts +2 -2
- package/dist/rollup/plugins/css/loaders/sourcemap.mjs +1 -1
- package/dist/rollup/plugins/css/loaders/stylus/index.d.cts +2 -2
- package/dist/rollup/plugins/css/loaders/stylus/index.d.mts +2 -2
- package/dist/rollup/plugins/css/loaders/stylus/index.d.ts +2 -2
- package/dist/rollup/plugins/css/minifiers/cssnano.d.cts +2 -2
- package/dist/rollup/plugins/css/minifiers/cssnano.d.mts +2 -2
- package/dist/rollup/plugins/css/minifiers/cssnano.d.ts +2 -2
- package/dist/rollup/plugins/css/minifiers/lightningcss.d.cts +2 -2
- package/dist/rollup/plugins/css/minifiers/lightningcss.d.mts +2 -2
- package/dist/rollup/plugins/css/minifiers/lightningcss.d.ts +2 -2
- package/dist/rollup/plugins/esbuild/index.d.cts +1 -1
- package/dist/rollup/plugins/esbuild/index.d.mts +1 -1
- package/dist/rollup/plugins/esbuild/index.d.ts +1 -1
- package/dist/rollup/plugins/esbuild/index.mjs +2 -2
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.cts +2 -2
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.mts +2 -2
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.ts +2 -2
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.cts +2 -2
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.mts +2 -2
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.ts +2 -2
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.cts +2 -2
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.mts +2 -2
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.ts +2 -2
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var ke=Object.defineProperty;var d=(e,t)=>ke(e,"name",{value:t,configurable:!0});import{fileURLToPath as Re}from"node:url";import Ee from"@csstools/postcss-slow-plugins";import{makeLegalIdentifier as q}from"@rollup/pluginutils";import{dirname as S,normalize as x,parse as Z,resolve as Ne,basename as I,isAbsolute as Ie,join as pe,relative as Ce}from"@visulima/path";import Ue from"postcss";import{r as F}from"../../../../../packem_shared/resolve-aYsRgS8e.mjs";import{f as K,d as De,e as A,p as Le,g as _e}from"../../../../../packem_shared/Mime-
|
|
2
|
-
`)})},"applyRaws");var Rt=Object.defineProperty,Et=d((e,t)=>Rt(e,"name",{value:t,configurable:!0}),"t$1");const Nt=Et((e,t)=>{t.nodes=[],e.charset&&(e.charset.parent=void 0,t.append(e.charset)),e.statements.forEach(s=>{_(s)?(s.node.parent=void 0,t.append(s.node)):Q(s)&&s.nodes.forEach(n=>{n.parent=void 0,t.append(n)})})},"applyStyles");var It=Object.defineProperty,Ct=d((e,t)=>It(e,"name",{value:t,configurable:!0}),"o$3");const Ut=Ct((e,t,s)=>{const n={baseDirs:[t],caller:"@import resolver",extensions:s},o=new URL(e,"file://").pathname,r=[o];return(Be(o)||o.startsWith("/"))&&r.push("."+o),o.startsWith("/")&&r.push(o.slice(1)),F(r,n)},"importResolve");var Dt=Object.defineProperty,fe=d((e,t)=>Dt(e,"name",{value:t,configurable:!0}),"e$1");const Lt=/^data:text\/css(?:;(?:base64|plain))?,/i,_t=/^data:text\/css;base64,/i,Ft=/^data:text\/css;plain,/i,Y=fe(e=>e!==void 0&&Lt.test(e),"isValidDataURL"),Tt=fe(e=>_t.test(e)?Buffer.from(e.slice(21),"base64").toString():Ft.test(e)?decodeURIComponent(e.slice(20)):decodeURIComponent(e.slice(14)),"dataURLContents");var Wt=Object.defineProperty,At=d((e,t)=>Wt(e,"name",{value:t,configurable:!0}),"o$1");const Mt="css-noop",ee=At(()=>({postcssPlugin:Mt}),"noopPlugin");ee.postcss=!0;var Bt=Object.defineProperty,me=d((e,t)=>Bt(e,"name",{value:t,configurable:!0}),"a$3");const de=me(async(e,t,s,n,o,r)=>(r===void 0&&(r=0),n.length===0&&n.push(ee()),await e(n).process(t,{from:s,parser:o[r]}).catch(async i=>{if(r++,r===o.length)throw i;return await de(e,t,s,n,o,r)})),"runPostcss"),Xt=me(async(e,t,s,n,o)=>{const{plugins:r}=n,i=[];return e.opts.syntax?.parse&&i.push(e.opts.syntax.parse),e.opts.parser&&i.push(e.opts.parser),i.push(void 0),await de(o,t,s,r,i)},"processContent"),Gt=/^charset$/i,he=/^import$/i,Jt=/^url$/i,C=/^layer$/i,Ht=/^supports$/i,zt=/^scope$/i;var Vt=Object.defineProperty,te=d((e,t)=>Vt(e,"name",{value:t,configurable:!0}),"a$2");const Qt=te(e=>{for(let t=0;t<e.length;t++){const s=e[t];if(!H(s)&&
|
|
1
|
+
var ke=Object.defineProperty;var d=(e,t)=>ke(e,"name",{value:t,configurable:!0});import{fileURLToPath as Re}from"node:url";import Ee from"@csstools/postcss-slow-plugins";import{makeLegalIdentifier as q}from"@rollup/pluginutils";import{dirname as S,normalize as x,parse as Z,resolve as Ne,basename as I,isAbsolute as Ie,join as pe,relative as Ce}from"@visulima/path";import Ue from"postcss";import{r as F}from"../../../../../packem_shared/resolve-aYsRgS8e.mjs";import{f as K,d as De,e as A,p as Le,g as _e}from"../../../../../packem_shared/Mime-BhRZQHGy.mjs";import{H as L,m as D,D as Fe,F as se}from"../../../../../packem_shared/sourcemap-DDVjvayf.mjs";import{n as re}from"../../../../../packem_shared/ensure-auto-modules-9cmxx7iZ.mjs";import{extractICSS as Te,replaceSymbols as We,replaceValueSymbols as Ae}from"icss-utils";import{readFile as Me,readFileSync as le}from"@visulima/fs";import{isRelative as Be}from"@visulima/path/utils";import{parseListOfComponentValues as Xe,isWhiteSpaceOrCommentNode as H,isTokenNode as M,isFunctionNode as U,stringify as E,isSimpleBlockNode as Ge,SimpleBlockNode as Je}from"@csstools/css-parser-algorithms";import{tokenize as He,isTokenString as B,isTokenURL as oe,isTokenIdent as ze,isTokenOpenParen as Ve,TokenType as ne}from"@csstools/css-tokenizer";import{findMonorepoRoot as Qe,findPackageRoot as Ye}from"@visulima/package";import qe from"postcss-load-config";import Ze from"postcss-modules-extract-imports";import Ke from"postcss-modules-local-by-default";import et from"postcss-modules-scope";import tt from"postcss-modules-values";import z from"postcss-value-parser";var st=Object.defineProperty,rt=d((e,t)=>st(e,"name",{value:t,configurable:!0}),"e$3");const ot=rt((e,...t)=>{const s=K([e,"0iOXBLSx",...t].join(":")).slice(0,8);return q(`${e}_${s}`)},"default");var nt=Object.defineProperty,it=d((e,t)=>nt(e,"name",{value:t,configurable:!0}),"i$4");const at=it(async(e,t,s,n,o)=>{const r=F([e,`./${e}`],{baseDirs:[S(t)],caller:"ICSS loader",extensions:s}),i=await Me(r),{messages:p}=await n.process(i,{...o,from:r}),l={};for(const c of p)c.type==="icss"&&Object.assign(l,c.export);return l},"load");var ct=Object.defineProperty,pt=d((e,t)=>ct(e,"name",{value:t,configurable:!0}),"t$3");const lt=pt(async(e,t,s,n,o,r)=>{const i={};for await(const[p,l]of Object.entries(e)){const c=await t(p,s,n,o,r);for(const[a,f]of Object.entries(l))i[a]=c[f]}return i},"resolve");var ut=Object.defineProperty,ft=d((e,t)=>ut(e,"name",{value:t,configurable:!0}),"c$4");const X="styles-icss",mt=[".css",".pcss",".postcss",".sss"],ue=ft(e=>{const t=e?.load??at,s=e?.extensions??mt;return{async OnceExit(n,{result:o}){if(!n.source?.input.file)return;const r={...o.opts,map:void 0},{icssExports:i,icssImports:p}=Te(n),l=await lt(p,t,n.source.input.file,s,o.processor,r);We(n,l);for(const[c,a]of Object.entries(i))o.messages.push({export:{[c]:Ae(a,l)},plugin:X,type:"icss"});for(const c of Object.keys(p))o.messages.push({import:c,plugin:X,type:"icss-dependency"})},postcssPlugin:X}},"plugin");ue.postcss=!0;var dt=Object.defineProperty,ht=d((e,t)=>dt(e,"name",{value:t,configurable:!0}),"t$2");const V=ht((e,t,s,n)=>{const o=[];if(e!==void 0){let r="layer";e&&(r="layer("+e+")"),o.push(r)}return s!==void 0&&o.push("supports("+s+")"),n!==void 0&&o.push("scope("+n+")"),t!==void 0&&o.push(t),o.join(" ")},"formatImportPrelude");var gt=Object.defineProperty,vt=d((e,t)=>gt(e,"name",{value:t,configurable:!0}),"p$4");const yt=vt((e,t)=>{t.reverse();const s=t.pop();if(!s)return e;let n=`${e} ${V(s.layer,s.media,s.supports,s.scope)}`;for(const o of t)n=`'data:text/css;base64,${Buffer.from(`@import ${n}`).toString("base64")}' ${V(o.layer,o.media,o.supports,o.scope)}`;return n},"base64EncodedConditionalImport");var $t=Object.defineProperty,T=d((e,t)=>$t(e,"name",{value:t,configurable:!0}),"e$2");const bt=T(e=>e.type==="warning","isWarning"),Q=T(e=>e.type==="nodes","isNodesStatement"),_=T(e=>e.type==="import","isImportStatement"),wt=T(e=>e.type==="pre-import","isPreImportStatement");var St=Object.defineProperty,jt=d((e,t)=>St(e,"name",{value:t,configurable:!0}),"u$1");const Ot=jt((e,t)=>{e.statements.forEach((s,n)=>{if(bt(s)||wt(s)||s.conditions.length===0)return;if(_(s)){s.node.params=yt(s.fullUri,s.conditions);return}const{nodes:o}=s;if(o.length===0)return;const{parent:r}=o[0];if(!r)return;const i=[];for(const c of s.conditions){if(c.media!==void 0){const a=t({name:"media",params:c.media,source:s.importingNode?.source??r.source});i.push(a)}if(c.scope!==void 0){const a=t({name:"scope",params:c.scope,source:s.importingNode?.source??r.source});i.push(a)}if(c.supports!==void 0){const a=t({name:"supports",params:"("+c.supports+")",source:s.importingNode?.source??r.source});i.push(a)}if(c.layer!==void 0){const a=t({name:"layer",params:c.layer,source:s.importingNode?.source??r.source});i.push(a)}}const p=i[0];if(!p)return;for(let c=0;c<i.length-1;c++)i[c].append(i[c+1]);const l=i.at(-1);r.insertBefore(o[0],p),o.forEach(c=>{c.parent=void 0}),l.append(o),e.statements[n]={conditions:s.conditions,from:s.from,importingNode:s.importingNode,nodes:[p],type:"nodes"}})},"applyConditions");var Pt=Object.defineProperty,xt=d((e,t)=>Pt(e,"name",{value:t,configurable:!0}),"r$4");const kt=xt(e=>{e.statements.forEach((t,s)=>{if(s!==0)if(t.parent!==void 0){const{before:n}=t.parent.node.raws;Q(t)?t.nodes[0].raws.before=n:t.node.raws.before=n}else Q(t)&&(t.nodes[0].raws.before=t.nodes[0].raws.before??`
|
|
2
|
+
`)})},"applyRaws");var Rt=Object.defineProperty,Et=d((e,t)=>Rt(e,"name",{value:t,configurable:!0}),"t$1");const Nt=Et((e,t)=>{t.nodes=[],e.charset&&(e.charset.parent=void 0,t.append(e.charset)),e.statements.forEach(s=>{_(s)?(s.node.parent=void 0,t.append(s.node)):Q(s)&&s.nodes.forEach(n=>{n.parent=void 0,t.append(n)})})},"applyStyles");var It=Object.defineProperty,Ct=d((e,t)=>It(e,"name",{value:t,configurable:!0}),"o$3");const Ut=Ct((e,t,s)=>{const n={baseDirs:[t],caller:"@import resolver",extensions:s},o=new URL(e,"file://").pathname,r=[o];return(Be(o)||o.startsWith("/"))&&r.push("."+o),o.startsWith("/")&&r.push(o.slice(1)),F(r,n)},"importResolve");var Dt=Object.defineProperty,fe=d((e,t)=>Dt(e,"name",{value:t,configurable:!0}),"e$1");const Lt=/^data:text\/css(?:;(?:base64|plain))?,/i,_t=/^data:text\/css;base64,/i,Ft=/^data:text\/css;plain,/i,Y=fe(e=>e!==void 0&&Lt.test(e),"isValidDataURL"),Tt=fe(e=>_t.test(e)?Buffer.from(e.slice(21),"base64").toString():Ft.test(e)?decodeURIComponent(e.slice(20)):decodeURIComponent(e.slice(14)),"dataURLContents");var Wt=Object.defineProperty,At=d((e,t)=>Wt(e,"name",{value:t,configurable:!0}),"o$1");const Mt="css-noop",ee=At(()=>({postcssPlugin:Mt}),"noopPlugin");ee.postcss=!0;var Bt=Object.defineProperty,me=d((e,t)=>Bt(e,"name",{value:t,configurable:!0}),"a$3");const de=me(async(e,t,s,n,o,r)=>(r===void 0&&(r=0),n.length===0&&n.push(ee()),await e(n).process(t,{from:s,parser:o[r]}).catch(async i=>{if(r++,r===o.length)throw i;return await de(e,t,s,n,o,r)})),"runPostcss"),Xt=me(async(e,t,s,n,o)=>{const{plugins:r}=n,i=[];return e.opts.syntax?.parse&&i.push(e.opts.syntax.parse),e.opts.parser&&i.push(e.opts.parser),i.push(void 0),await de(o,t,s,r,i)},"processContent"),Gt=/^charset$/i,he=/^import$/i,Jt=/^url$/i,C=/^layer$/i,Ht=/^supports$/i,zt=/^scope$/i;var Vt=Object.defineProperty,te=d((e,t)=>Vt(e,"name",{value:t,configurable:!0}),"a$2");const Qt=te(e=>{for(let t=0;t<e.length;t++){const s=e[t];if(!H(s)&&Ge(s)&&Ve(s.startToken))return e}return[new Je([ne.OpenParen,"(",-1,-1,void 0],[ne.CloseParen,")",-1,-1,void 0],e)]},"wrapInParenthesisIfNeeded"),ie=te(e=>{if(e.startsWith("#"))return"";if(!e.includes("#"))return e;try{const t=new URL(e,"http://example.com");return t.hash?e.slice(0,e.length-t.hash.length):e}catch{return e}},"stripHash"),Yt=te(e=>{const t=He({css:e});if(t.length===2&&(B(t[0])||oe(t[0]))){let c=t[0][4].value;return c=ie(c),c?{fullUri:t[0][1],uri:c}:!1}const s=Xe(t);let n="",o="",r,i,p,l;for(let c=0;c<s.length;c++){const a=s[c];if(!H(a)){if(M(a)&&(B(a.value)||oe(a.value))){if(n)return!1;n=a.value[4].value,o=a.value[1];continue}if(U(a)&&Jt.test(a.getName())){if(n)return!1;for(let f=0;f<a.value.length;f++){const u=a.value[f];if(!H(u)){if(!n&&M(u)&&B(u.value)){n=u.value[4].value,o=E([[a]]);continue}return!1}}continue}if(!n)return!1;if(M(a)&&ze(a.value)&&C.test(a.value[4].value)){if(r!==void 0||p!==void 0)return!1;r="";continue}if(U(a)&&C.test(a.getName())){if(r!==void 0||p!==void 0)return!1;r=E([a.value]);continue}if(U(a)&&Ht.test(a.getName())){if(p!==void 0)return!1;p=E([a.value]);continue}if(U(a)&&zt.test(a.getName())){if(l!==void 0)return!1;l=E([Qt(a.value)]);continue}i=E([s.slice(c)]);break}}return n=ie(n),n?{fullUri:o,layer:r,media:i,scope:l,supports:p,uri:n}:!1},"parseAtImport");var qt=Object.defineProperty,k=d((e,t)=>qt(e,"name",{value:t,configurable:!0}),"d");const ge=k((e,t,s,n)=>{const o=[];let r=t;const i=e.length;for(r;r<i;r++){const p=e[r];if(o.push(p),e[r+1]?.type!=="comment")break}return[r,{conditions:[],from:n,importingNode:s,nodes:o,type:"nodes"}]},"consumeComments"),Zt=k((e,t,s,n,o)=>{const r=Yt(t.params);if(!r)return e.warn(`Invalid @import statement in '${t.toString()}'`,{node:t});const i={conditions:[...n],from:o,fullUri:r.fullUri,importingNode:s,node:t,type:"import",uri:r.uri};return(r.layer!==void 0||r.media!==void 0||r.supports!==void 0||r.scope!==void 0)&&i.conditions.push({layer:r.layer,media:r.media,scope:r.scope,supports:r.supports}),i},"parseImport"),Kt=k((e,t,s,n,o,r)=>{const i=[];let p=n;const l=t.length;for(p;p<l;p++){const c=t[p];if(c.type==="comment"){const[a,f]=ge(t,p,o,r);i.push(f),p=a;continue}if(c.type==="atrule"&&he.test(c.name)){i.push(Zt(e,c,o,s,r));continue}break}return[p-1,i]},"consumeImports"),es=k((e,t,s,n,o)=>{const r=[];let i=s;const p=e.length;for(i;i<p;i++){const l=e[i];r.push(l);const c=e[i+1];if(!(c&&c.type==="atrule"&&C.test(c.name)&&!c.nodes))break}return[i,{conditions:[...t],from:o,importingNode:n,nodes:r,type:"nodes"}]},"consumeLayers"),ts=k((e,t,s,n,o)=>{const r=[];let i=s;const p=e.length;for(i;i<p;i++){const l=e[i];if(l.type==="comment"){const[c,a]=ge(e,i,n,o);r.push(a),i=c;continue}if(l.type==="atrule"&&C.test(l.name)&&!l.nodes)if(t.length>0){r.push({conditions:[...t],from:o,importingNode:n,node:l,type:"pre-import"});continue}else{const[c,a]=es(e,t,i,n,o);r.push(a),i=c;continue}break}return[i-1,r]},"consumeBeforeImports"),ve=k((e,t,s,n,o)=>{const r={statements:[]};if(t.type==="document")return t.each(f=>{const u=ve(e,f,s,n,o);if(r.charset&&u.charset&&r.charset.params.toLowerCase()!==u.charset.params.toLowerCase())throw u.charset.error(`Incompatible @charset statements:
|
|
3
3
|
${u.charset.params} specified in ${u.charset.source?.input.file}
|
|
4
4
|
${r.charset.params} specified in ${r.charset.source?.input.file}`);!r.charset&&u.charset&&(r.charset=u.charset),r.statements.push(...u.statements)}),r;let i,p=[],l=[],c;for(let f=0;f<t.nodes.length;f++){const u=t.nodes[f];if(f===0&&u.type==="atrule"&&Gt.test(u.name)){i=u;continue}if(l.length===0&&(u.type==="comment"||u.type==="atrule"&&C.test(u.name)&&!u.nodes)){[f,p]=ts(t.nodes,n,f,s,o);continue}if(l.length===0&&u.type==="atrule"&&he.test(u.name)){[f,l]=Kt(e,t.nodes,n,f,s,o);continue}c={conditions:[...n],from:o,importingNode:s,nodes:t.nodes.slice(f),type:"nodes"};break}const a=[];return p.length>0&&a.push(...p),l.length>0&&a.push(...l),c&&a.push(c),{charset:i,statements:a}},"parseStylesheet");var ss=Object.defineProperty,W=d((e,t)=>ss(e,"name",{value:t,configurable:!0}),"h");const rs=/^(?:[a-z]+:)?\/\//i,os=W(e=>{if(rs.test(e))return!1;try{if(new URL(e,"https://example.com").search)return!1}catch{}return!0},"isProcessableURL"),ae=W(async(e,t,s,n,o,r)=>{const{conditions:i,from:p,node:l}=t,c=i.map(h=>V(h.layer,h.media,h.supports,h.scope)).join(":");if(n.skipDuplicates){if(o.importedFiles[s]?.[c])return{statements:[]};o.importedFiles[s]||(o.importedFiles[s]={}),o.importedFiles[s][c]=!0}if(p.includes(s))return{statements:[]};const a=await n.load(s,n);if(a.trim()===""&&n.warnOnEmpty)return e.warn(`${s} is empty`,{node:l}),{statements:[]};if(n.skipDuplicates&&o.hashFiles[a]?.[c])return{statements:[]};const f=await Xt(e,a,s,n,r),u=f.root;return n.debug&&u.append({text:s}),e.messages=[...e.messages,...f.messages],n.skipDuplicates&&(u.some(h=>h.type==="atrule"&&h.name==="import")||(o.hashFiles[a]||(o.hashFiles[a]={}),o.hashFiles[a][c]=!0)),await ye(n,e,u,o,l,i,[...p,s],r)},"loadImportContent"),ns=W(async(e,t,s,n,o)=>{if(Y(s.uri)){s.stylesheet=await ae(t,s,s.uri,e,n,o);return}if(Y(s.from.at(-1))){s.stylesheet={statements:[]},t.warn(`Unable to import '${s.uri}' from a stylesheet that is embedded in a data url`,{node:s.node});return}const r=s.node;let i;r.source?.input.file&&(i=r.source.input.file);const p=i?S(i):e.root;for(const[c,a]of Object.entries(e.alias))s.uri!==c&&!s.uri.startsWith(`${c}/`)||(s.uri=x(a)+s.uri.slice(c.length));let l;try{l=await e.resolve(s.uri,p,e.extensions,r)}catch{s.node.warn(t,`Unable to resolve "${s.uri}" from "${p}"`);return}t.messages.push({file:l,parent:i,plugin:"packem-postcss-import",type:"dependency"}),s.stylesheet=await ae(t,s,l,e,n,o)},"resolveImportId"),ye=W(async(e,t,s,n,o,r,i,p)=>{let{charset:l,statements:c}=ve(t,s,o,r,i);{const a=[];for await(const f of c)!_(f)||!os(f.uri)||e.filter&&!e.filter(f.uri)||a.push(ns(e,t,f,n,p));a.length>0&&await Promise.all(a)}for(let a=0;a<c.length;a++){const f=c[a];if(_(f)&&f.stylesheet){if(l&&f.stylesheet.charset&&l.params.toLowerCase()!==f.stylesheet.charset.params.toLowerCase())throw f.stylesheet.charset.error(`Incompatible @charset statements:
|
|
5
5
|
${f.stylesheet.charset.params} specified in ${f.stylesheet.charset.source?.input.file}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as Loader, S as SassLoaderOptions } from '../../../../../packem_shared/types-
|
|
1
|
+
import { L as Loader, S as SassLoaderOptions } from '../../../../../packem_shared/types-DuwCnNZN.cjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../../packem_shared/types-
|
|
26
|
+
import '../../../../../packem_shared/types-Cxx27LIj.cjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../../packem_shared/types-DvWhOdt5.cjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as Loader, S as SassLoaderOptions } from '../../../../../packem_shared/types-
|
|
1
|
+
import { L as Loader, S as SassLoaderOptions } from '../../../../../packem_shared/types-9j5aBtpH.mjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../../packem_shared/types-
|
|
26
|
+
import '../../../../../packem_shared/types-Cxx27LIj.mjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../../packem_shared/types-DvWhOdt5.mjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as Loader, S as SassLoaderOptions } from '../../../../../packem_shared/types-
|
|
1
|
+
import { L as Loader, S as SassLoaderOptions } from '../../../../../packem_shared/types-C2B7YY5i.js';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../../packem_shared/types-
|
|
26
|
+
import '../../../../../packem_shared/types-Cxx27LIj.js';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../../packem_shared/types-DvWhOdt5.js';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var T=Object.defineProperty;var h=(e,s)=>T(e,"name",{value:s,configurable:!0});import{fileURLToPath as y}from"node:url";import{isAbsolute as S,dirname as L,extname as A,join as b,resolve as C,normalize as x}from"@visulima/path";import{isRelative as z}from"@visulima/path/utils";import{r as D}from"../../../../../packem_shared/resolve-aYsRgS8e.mjs";import{n as O,g as U,h as _}from"../../../../../packem_shared/url-
|
|
1
|
+
var T=Object.defineProperty;var h=(e,s)=>T(e,"name",{value:s,configurable:!0});import{fileURLToPath as y}from"node:url";import{isAbsolute as S,dirname as L,extname as A,join as b,resolve as C,normalize as x}from"@visulima/path";import{isRelative as z}from"@visulima/path/utils";import{r as D}from"../../../../../packem_shared/resolve-aYsRgS8e.mjs";import{n as O,g as U,h as _}from"../../../../../packem_shared/url-DQUPWlUq.mjs";import{readFileSync as k}from"@visulima/fs";import{pathToFileURL as R}from"mlly";import{d as H}from"../../../../../packem_shared/index-CsX3kGje.mjs";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
|
|
2
2
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
3
3
|
var N=Object.defineProperty,E=h((e,s)=>N(e,"name",{value:s,configurable:!0}),"s");const W=[".scss",".sass",".css"],J=["sass","style"],q=E((e,s,a)=>{const t=[],o=O(e);if(t.push(U(o),o),!_(e)&&!S(e)&&!z(e)){const n=O(`~${e}`);t.push(U(n),n)}const i={baseDirs:[L(s)],caller:"Sass importer",extensions:W,mainFields:J};return a(t,i)},"importerImpl"),Z=E(e=>({file:e.replace(/\.css$/i,"")}),"finalize"),B=E((e,s)=>{try{return Z(q(e,s,D))}catch{return null}},"importer");var V=Object.defineProperty,G=h((e,s)=>V(e,"name",{value:s,configurable:!0}),"e$1");const I=G(e=>{switch(e.toLowerCase()){case".scss":return"scss";case".sass":return"indented";case".css":return"css";default:return}},"resolveSyntax");var K=Object.defineProperty,Q=h((e,s)=>K(e,"name",{value:s,configurable:!0}),"i$1");const X=[".scss",".sass",".css"],Y=["sass","style"],ee=Q((e,s)=>({canonicalize(a,t){const o=t.containingUrl?y(t.containingUrl.toString()):e;let i;const n=O(a),v=U(n);try{i=D([v,n],{baseDirs:[L(o)],caller:"Sass modern importer",extensions:X,mainFields:Y})}catch{return null}return new URL(R(i))},load(a){const t=A(a.pathname),o=t?I(t.toLowerCase())??"scss":"scss";try{let i=k(a);return s&&(i="/* "+a.pathname+` */
|
|
4
4
|
`+i),{contents:i,sourceMapUrl:a,syntax:o}}catch{return null}}}),"importer");var se=Object.defineProperty,re=h((e,s)=>se(e,"name",{value:s,configurable:!0}),"a");let $;const te=re(async(e,s)=>{if(e.compileString!==void 0)return s==="modern"?a=>{const{data:t,...o}=a;return e.compileString(t,o)}:s==="modern-compiler"?a=>{const{data:t,...o}=a;return e.compileString(t,o)}:a=>e.renderSync(a);if(s==="modern"||s==="modern-compiler")throw new Error("Modern API is not supported for 'node-sass'");if(!$){const a=Number(process.env.UV_THREADPOOL_SIZE??4);$=new H({concurrency:a-1})}return async a=>await $.add(async()=>await new Promise((t,o)=>{e.render.bind(e)(a,(i,n)=>{if(i){o(i);return}t(n)})}))},"getCompileFunction");var ae=Object.defineProperty,M=h((e,s)=>ae(e,"name",{value:s,configurable:!0}),"o");const oe=M(()=>{const e=["sass-embedded","sass","node-sass"];for(const s of e)try{return require.resolve(s),s}catch{}throw new Error("No supported Sass implementation found. Please install 'sass-embedded', 'sass', or 'node-sass'.")},"getDefaultSassImplementation"),ne=M(e=>{let s=e;typeof s=="string"&&(s=require(s));const{info:a=void 0}=s;if(!a)throw new Error(`Sass implementation is missing 'info' property. Implementation: ${JSON.stringify(s)}`);const t=a.split(" ");if(t.length<2)throw new Error(`Invalid Sass implementation info format. Expected at least 2 parts, got: "${a}".`);const[o]=t;if(o==="dart-sass"||o==="node-sass"||o==="sass-embedded")return s;throw new Error(`Unsupported Sass implementation: "${o}". Supported implementations are: dart-sass, node-sass, sass-embedded.`)},"getSassImplementation");var ie=Object.defineProperty,P=h((e,s)=>ie(e,"name",{value:s,configurable:!0}),"d");const ce=P(async(e,s,a,t,o,i,n)=>{const{warnRuleAsWarning:v,...m}=t,r={...m,data:t.additionalData?typeof t.additionalData=="function"?await t.additionalData(o,e):`${t.additionalData}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as Loader } from '../../../../packem_shared/types-
|
|
1
|
+
import { L as Loader } from '../../../../packem_shared/types-DuwCnNZN.cjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../packem_shared/types-
|
|
26
|
+
import '../../../../packem_shared/types-Cxx27LIj.cjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../packem_shared/types-DvWhOdt5.cjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as Loader } from '../../../../packem_shared/types-
|
|
1
|
+
import { L as Loader } from '../../../../packem_shared/types-9j5aBtpH.mjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../packem_shared/types-
|
|
26
|
+
import '../../../../packem_shared/types-Cxx27LIj.mjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../packem_shared/types-DvWhOdt5.mjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as Loader } from '../../../../packem_shared/types-
|
|
1
|
+
import { L as Loader } from '../../../../packem_shared/types-C2B7YY5i.js';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../packem_shared/types-
|
|
26
|
+
import '../../../../packem_shared/types-Cxx27LIj.js';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../packem_shared/types-DvWhOdt5.js';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{g as e,s as o}from"../../../../packem_shared/sourcemap-DDVjvayf.mjs";const t={alwaysProcess:!0,name:"sourcemap",async process({code:a,map:s}){return{code:o(a),map:await e(a,this.id)??s}}};export{t as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as Loader, k as StylusLoaderOptions } from '../../../../../packem_shared/types-
|
|
1
|
+
import { L as Loader, k as StylusLoaderOptions } from '../../../../../packem_shared/types-DuwCnNZN.cjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../../packem_shared/types-
|
|
26
|
+
import '../../../../../packem_shared/types-Cxx27LIj.cjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../../packem_shared/types-DvWhOdt5.cjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as Loader, k as StylusLoaderOptions } from '../../../../../packem_shared/types-
|
|
1
|
+
import { L as Loader, k as StylusLoaderOptions } from '../../../../../packem_shared/types-9j5aBtpH.mjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../../packem_shared/types-
|
|
26
|
+
import '../../../../../packem_shared/types-Cxx27LIj.mjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../../packem_shared/types-DvWhOdt5.mjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as Loader, k as StylusLoaderOptions } from '../../../../../packem_shared/types-
|
|
1
|
+
import { L as Loader, k as StylusLoaderOptions } from '../../../../../packem_shared/types-C2B7YY5i.js';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../../packem_shared/types-
|
|
26
|
+
import '../../../../../packem_shared/types-Cxx27LIj.js';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../../packem_shared/types-DvWhOdt5.js';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Options } from 'cssnano';
|
|
2
|
-
import { m as Minifier } from '../../../../packem_shared/types-
|
|
2
|
+
import { m as Minifier } from '../../../../packem_shared/types-DuwCnNZN.cjs';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../packem_shared/types-
|
|
26
|
+
import '../../../../packem_shared/types-Cxx27LIj.cjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../packem_shared/types-DvWhOdt5.cjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Options } from 'cssnano';
|
|
2
|
-
import { m as Minifier } from '../../../../packem_shared/types-
|
|
2
|
+
import { m as Minifier } from '../../../../packem_shared/types-9j5aBtpH.mjs';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../packem_shared/types-
|
|
26
|
+
import '../../../../packem_shared/types-Cxx27LIj.mjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../packem_shared/types-DvWhOdt5.mjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Options } from 'cssnano';
|
|
2
|
-
import { m as Minifier } from '../../../../packem_shared/types-
|
|
2
|
+
import { m as Minifier } from '../../../../packem_shared/types-C2B7YY5i.js';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../packem_shared/types-
|
|
26
|
+
import '../../../../packem_shared/types-Cxx27LIj.js';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../packem_shared/types-DvWhOdt5.js';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as Minifier, j as InternalStyleOptions } from '../../../../packem_shared/types-
|
|
1
|
+
import { m as Minifier, j as InternalStyleOptions } from '../../../../packem_shared/types-DuwCnNZN.cjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../packem_shared/types-
|
|
26
|
+
import '../../../../packem_shared/types-Cxx27LIj.cjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../packem_shared/types-DvWhOdt5.cjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as Minifier, j as InternalStyleOptions } from '../../../../packem_shared/types-
|
|
1
|
+
import { m as Minifier, j as InternalStyleOptions } from '../../../../packem_shared/types-9j5aBtpH.mjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../packem_shared/types-
|
|
26
|
+
import '../../../../packem_shared/types-Cxx27LIj.mjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../packem_shared/types-DvWhOdt5.mjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as Minifier, j as InternalStyleOptions } from '../../../../packem_shared/types-
|
|
1
|
+
import { m as Minifier, j as InternalStyleOptions } from '../../../../packem_shared/types-C2B7YY5i.js';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../../packem_shared/types-
|
|
26
|
+
import '../../../../packem_shared/types-Cxx27LIj.js';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../../packem_shared/types-DvWhOdt5.js';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'rollup';
|
|
2
|
-
import { E as EsbuildPluginConfig } from '../../../packem_shared/types-
|
|
2
|
+
import { E as EsbuildPluginConfig } from '../../../packem_shared/types-Cxx27LIj.cjs';
|
|
3
3
|
import '@rollup/pluginutils';
|
|
4
4
|
import '@visulima/pail';
|
|
5
5
|
import 'esbuild';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'rollup';
|
|
2
|
-
import { E as EsbuildPluginConfig } from '../../../packem_shared/types-
|
|
2
|
+
import { E as EsbuildPluginConfig } from '../../../packem_shared/types-Cxx27LIj.mjs';
|
|
3
3
|
import '@rollup/pluginutils';
|
|
4
4
|
import '@visulima/pail';
|
|
5
5
|
import 'esbuild';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'rollup';
|
|
2
|
-
import { E as EsbuildPluginConfig } from '../../../packem_shared/types-
|
|
2
|
+
import { E as EsbuildPluginConfig } from '../../../packem_shared/types-Cxx27LIj.js';
|
|
3
3
|
import '@rollup/pluginutils';
|
|
4
4
|
import '@visulima/pail';
|
|
5
5
|
import 'esbuild';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var O=Object.defineProperty;var f=(e,r)=>O(e,"name",{value:r,configurable:!0});import{existsSync as M,statSync as E}from"node:fs";import{createFilter as S}from"@rollup/pluginutils";import{join as $,
|
|
1
|
+
var O=Object.defineProperty;var f=(e,r)=>O(e,"name",{value:r,configurable:!0});import{existsSync as M,statSync as E}from"node:fs";import{createFilter as S}from"@rollup/pluginutils";import{join as $,extname as P,resolve as W,dirname as A}from"@visulima/path";import{formatMessages as F,transform as z,build as R}from"esbuild";import{d as C}from"../../../packem_shared/constants-DSQIKVQe.mjs";import{u as b}from"../../../packem_shared/resolve-file-CuB1s0x9.mjs";import{findCacheDirSync as L}from"@visulima/find-cache-dir";import{readFileSync as I}from"@visulima/fs";import{init as q,parse as T}from"es-module-lexer";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
|
|
2
2
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
3
|
-
var U=Object.defineProperty,B=f((e,r)=>U(e,"name",{value:r,configurable:!0}),"n$1");const _=B(async(e,r)=>{r.length>0&&(await F(r,{color:!0,kind:"warning"})).forEach(l=>e.warn(l))},"warn");var G=Object.defineProperty,x=f((e,r)=>G(e,"name",{value:r,configurable:!0}),"t");const H=x(e=>{if(e==="es")return"esm";if(e==="cjs")return e},"getEsbuildFormat"),J=x(({sourceMap:e=!0,...r})=>async function(l,s,n){if(r.minify||r.minifyWhitespace||r.minifyIdentifiers||r.minifySyntax){const i=H(n.format),c=await z(l,{format:i,loader:"js",sourcemap:e,...r});if(await _(this,c.warnings),c.code)return{code:c.code,map:c.map||null}}return null},"getRenderChunk");var K=Object.defineProperty,j=f((e,r)=>K(e,"name",{value:r,configurable:!0}),"n");const D=j(e=>e.replaceAll("\\","/"),"slash"),N=j(async e=>{const r=L("@visulima/packem/optimize-deps",{create:!0,cwd:e.cwd});if(!r)throw new Error('[packem:optimize-deps]: failed to find or create cache directory "node_modules/.cache/packem/optimize_deps".');await q,await R({absWorkingDir:e.cwd,bundle:!0,entryPoints:e.include,format:"esm",ignoreAnnotations:!0,metafile:!0,outdir:r,sourcemap:e.sourceMap,splitting:!0,...e.esbuildOptions,plugins:[{name:"optimize-deps",async setup(s){s.onResolve({filter:/.*/},async n=>{if(e.exclude?.includes(n.path))return{external:!0};if(n.pluginData?.__resolving_dep_path__)return null;if(e.include.includes(n.path)){const i=await s.resolve(n.path,{kind:"import-statement",pluginData:{__resolving_dep_path__:!0},resolveDir:n.resolveDir});return i.errors.length>0||i.warnings.length>0?i:{namespace:"optimize-deps",path:n.path,pluginData:{absolute:i.path,resolveDir:n.resolveDir}}}return null}),s.onLoad({filter:/.*/,namespace:"optimize-deps"},async n=>{const{absolute:i,resolveDir:c}=n.pluginData,[,u]=T(I(i));return{contents:u.length>0?`export * from '${D(i)}'`:`module.exports = require('${D(i)}')`,resolveDir:c}})}},...e.esbuildOptions?.plugins??[]]});const l=new Map;for(const s of e.include)l.set(s,{file:$(r,`${s}.js`)});return{cacheDir:r,optimized:l}},"optimizeDeps");var Q=Object.defineProperty,V=f((e,r)=>Q(e,"name",{value:r,configurable:!0}),"h");const se=V(({exclude:e,include:r,loaders:l,logger:s,optimizeDeps:n,sourceMap:i=!0,...c})=>{const u=C;if(l!==void 0)for(let[t,a]of Object.entries(l))t=t.startsWith(".")?t:`.${t}`,typeof a=="string"?u[t]=a:a||delete u[t];const g=Object.keys(u),k=new RegExp(`\\.(${g.map(t=>t.slice(1)).join("|")})$`),w=S(r??k,e);let d,y=process.cwd();const h=new Map;return{async buildStart(){!n||d||(d=await N({cwd:y,sourceMap:i,...n}),s.debug("optimized %O",d.optimized))},name:"packem:esbuild",options({context:t}){return t&&(y=t),null},renderChunk:J({...c,sourceMap:i}),async resolveId(t,a,{isEntry:v}){if(!a||v||!w(t)||t.startsWith("\0"))return null;if(d?.optimized.has(t)){const o=d.optimized.get(t);if(o)return s.debug("resolved %s to %s",t,o.file),o.file}const p=h.get(t);if(p!==void 0)return p;if(a&&t.startsWith(".")){const o=
|
|
3
|
+
var U=Object.defineProperty,B=f((e,r)=>U(e,"name",{value:r,configurable:!0}),"n$1");const _=B(async(e,r)=>{r.length>0&&(await F(r,{color:!0,kind:"warning"})).forEach(l=>e.warn(l))},"warn");var G=Object.defineProperty,x=f((e,r)=>G(e,"name",{value:r,configurable:!0}),"t");const H=x(e=>{if(e==="es")return"esm";if(e==="cjs")return e},"getEsbuildFormat"),J=x(({sourceMap:e=!0,...r})=>async function(l,s,n){if(r.minify||r.minifyWhitespace||r.minifyIdentifiers||r.minifySyntax){const i=H(n.format),c=await z(l,{format:i,loader:"js",sourcemap:e,...r});if(await _(this,c.warnings),c.code)return{code:c.code,map:c.map||null}}return null},"getRenderChunk");var K=Object.defineProperty,j=f((e,r)=>K(e,"name",{value:r,configurable:!0}),"n");const D=j(e=>e.replaceAll("\\","/"),"slash"),N=j(async e=>{const r=L("@visulima/packem/optimize-deps",{create:!0,cwd:e.cwd});if(!r)throw new Error('[packem:optimize-deps]: failed to find or create cache directory "node_modules/.cache/packem/optimize_deps".');await q,await R({absWorkingDir:e.cwd,bundle:!0,entryPoints:e.include,format:"esm",ignoreAnnotations:!0,metafile:!0,outdir:r,sourcemap:e.sourceMap,splitting:!0,...e.esbuildOptions,plugins:[{name:"optimize-deps",async setup(s){s.onResolve({filter:/.*/},async n=>{if(e.exclude?.includes(n.path))return{external:!0};if(n.pluginData?.__resolving_dep_path__)return null;if(e.include.includes(n.path)){const i=await s.resolve(n.path,{kind:"import-statement",pluginData:{__resolving_dep_path__:!0},resolveDir:n.resolveDir});return i.errors.length>0||i.warnings.length>0?i:{namespace:"optimize-deps",path:n.path,pluginData:{absolute:i.path,resolveDir:n.resolveDir}}}return null}),s.onLoad({filter:/.*/,namespace:"optimize-deps"},async n=>{const{absolute:i,resolveDir:c}=n.pluginData,[,u]=T(I(i));return{contents:u.length>0?`export * from '${D(i)}'`:`module.exports = require('${D(i)}')`,resolveDir:c}})}},...e.esbuildOptions?.plugins??[]]});const l=new Map;for(const s of e.include)l.set(s,{file:$(r,`${s}.js`)});return{cacheDir:r,optimized:l}},"optimizeDeps");var Q=Object.defineProperty,V=f((e,r)=>Q(e,"name",{value:r,configurable:!0}),"h");const se=V(({exclude:e,include:r,loaders:l,logger:s,optimizeDeps:n,sourceMap:i=!0,...c})=>{const u=C;if(l!==void 0)for(let[t,a]of Object.entries(l))t=t.startsWith(".")?t:`.${t}`,typeof a=="string"?u[t]=a:a||delete u[t];const g=Object.keys(u),k=new RegExp(`\\.(${g.map(t=>t.slice(1)).join("|")})$`),w=S(r??k,e);let d,y=process.cwd();const h=new Map;return{async buildStart(){!n||d||(d=await N({cwd:y,sourceMap:i,...n}),s.debug("optimized %O",d.optimized))},name:"packem:esbuild",options({context:t}){return t&&(y=t),null},renderChunk:J({...c,sourceMap:i}),async resolveId(t,a,{isEntry:v}){if(!a||v||!w(t)||t.startsWith("\0"))return null;if(d?.optimized.has(t)){const o=d.optimized.get(t);if(o)return s.debug("resolved %s to %s",t,o.file),o.file}const p=h.get(t);if(p!==void 0)return p;if(a&&t.startsWith(".")){const o=W(a?A(a):process.cwd(),t);let m=b(g,o);if(m||!m&&M(o)&&E(o).isDirectory()&&(m=b(g,o,!0),m))return h.set(t,m),m}return h.set(t,null),null},async transform(t,a){if(!w(a)||d?.optimized.has(a))return null;const v=P(a),p=u[v];if(s.debug("transforming %s with %s loader",a,p),!p)return null;const o=await z(t,{format:["base64","binary","dataurl","text","json"].includes(p)?"esm":void 0,loader:p,sourcefile:a.replace(/\.[cm]ts/,".ts"),sourcemap:i,...c});return await _(this,o.warnings),o.code?{code:o.code,map:o.map||null}:null}}},"default");export{se as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-DuwCnNZN.cjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../packem_shared/types-
|
|
26
|
+
import '../../../packem_shared/types-Cxx27LIj.cjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../packem_shared/types-DvWhOdt5.cjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-9j5aBtpH.mjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../packem_shared/types-
|
|
26
|
+
import '../../../packem_shared/types-Cxx27LIj.mjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../packem_shared/types-DvWhOdt5.mjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-C2B7YY5i.js';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../packem_shared/types-
|
|
26
|
+
import '../../../packem_shared/types-Cxx27LIj.js';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../packem_shared/types-DvWhOdt5.js';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-DuwCnNZN.cjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../packem_shared/types-
|
|
26
|
+
import '../../../packem_shared/types-Cxx27LIj.cjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../packem_shared/types-DvWhOdt5.cjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-9j5aBtpH.mjs';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../packem_shared/types-
|
|
26
|
+
import '../../../packem_shared/types-Cxx27LIj.mjs';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../packem_shared/types-DvWhOdt5.mjs';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-C2B7YY5i.js';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -23,7 +23,7 @@ import 'postcss-load-config';
|
|
|
23
23
|
import 'node-sass';
|
|
24
24
|
import 'sass';
|
|
25
25
|
import 'sass-embedded';
|
|
26
|
-
import '../../../packem_shared/types-
|
|
26
|
+
import '../../../packem_shared/types-Cxx27LIj.js';
|
|
27
27
|
import 'esbuild';
|
|
28
28
|
import '../../../packem_shared/types-DvWhOdt5.js';
|
|
29
29
|
import 'sucrase';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TranspileOptions } from 'typescript';
|
|
2
|
-
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-
|
|
2
|
+
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-DuwCnNZN.cjs';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -24,7 +24,7 @@ import 'postcss-load-config';
|
|
|
24
24
|
import 'node-sass';
|
|
25
25
|
import 'sass';
|
|
26
26
|
import 'sass-embedded';
|
|
27
|
-
import '../../../packem_shared/types-
|
|
27
|
+
import '../../../packem_shared/types-Cxx27LIj.cjs';
|
|
28
28
|
import 'esbuild';
|
|
29
29
|
import '../../../packem_shared/types-DvWhOdt5.cjs';
|
|
30
30
|
import 'sucrase';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TranspileOptions } from 'typescript';
|
|
2
|
-
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-
|
|
2
|
+
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-9j5aBtpH.mjs';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -24,7 +24,7 @@ import 'postcss-load-config';
|
|
|
24
24
|
import 'node-sass';
|
|
25
25
|
import 'sass';
|
|
26
26
|
import 'sass-embedded';
|
|
27
|
-
import '../../../packem_shared/types-
|
|
27
|
+
import '../../../packem_shared/types-Cxx27LIj.mjs';
|
|
28
28
|
import 'esbuild';
|
|
29
29
|
import '../../../packem_shared/types-DvWhOdt5.mjs';
|
|
30
30
|
import 'sucrase';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TranspileOptions } from 'typescript';
|
|
2
|
-
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-
|
|
2
|
+
import { I as IsolatedDeclarationsResult } from '../../../packem_shared/types-C2B7YY5i.js';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -24,7 +24,7 @@ import 'postcss-load-config';
|
|
|
24
24
|
import 'node-sass';
|
|
25
25
|
import 'sass';
|
|
26
26
|
import 'sass-embedded';
|
|
27
|
-
import '../../../packem_shared/types-
|
|
27
|
+
import '../../../packem_shared/types-Cxx27LIj.js';
|
|
28
28
|
import 'esbuild';
|
|
29
29
|
import '../../../packem_shared/types-DvWhOdt5.js';
|
|
30
30
|
import 'sucrase';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/packem",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"description": "A fast and modern bundler for Node.js and TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
"dependencies": {
|
|
326
326
|
"@antfu/install-pkg": "0.4.1",
|
|
327
327
|
"@babel/parser": "7.26.2",
|
|
328
|
-
"@clack/prompts": "0.
|
|
328
|
+
"@clack/prompts": "0.8.1",
|
|
329
329
|
"@csstools/css-parser-algorithms": "3.0.4",
|
|
330
330
|
"@csstools/css-tokenizer": "3.0.3",
|
|
331
331
|
"@csstools/postcss-slow-plugins": "^2.0.0",
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
"mlly": "1.7.3",
|
|
359
359
|
"oxc-parser": "0.33.0",
|
|
360
360
|
"oxc-resolver": "1.12.0",
|
|
361
|
-
"rollup": "4.
|
|
361
|
+
"rollup": "4.27.2",
|
|
362
362
|
"rollup-plugin-dts": "6.1.1",
|
|
363
363
|
"rollup-plugin-license": "3.5.3",
|
|
364
364
|
"rollup-plugin-polyfill-node": "0.13.0",
|
|
@@ -396,8 +396,8 @@
|
|
|
396
396
|
"@types/semver": "^7.5.8",
|
|
397
397
|
"@types/stylus": "^0.48.43",
|
|
398
398
|
"@types/uglifycss": "^0.0.11",
|
|
399
|
-
"@vitest/coverage-v8": "^2.1.
|
|
400
|
-
"@vitest/ui": "^2.1.
|
|
399
|
+
"@vitest/coverage-v8": "^2.1.5",
|
|
400
|
+
"@vitest/ui": "^2.1.5",
|
|
401
401
|
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
402
402
|
"cross-env": "^7.0.3",
|
|
403
403
|
"cssnano": "7.0.6",
|
|
@@ -433,8 +433,8 @@
|
|
|
433
433
|
"react-dom": "^18.3.1",
|
|
434
434
|
"rimraf": "^6.0.1",
|
|
435
435
|
"rollup-plugin-lit-css": "^5.0.1",
|
|
436
|
-
"sass": "^1.
|
|
437
|
-
"sass-embedded": "^1.
|
|
436
|
+
"sass": "^1.81.0",
|
|
437
|
+
"sass-embedded": "^1.81.0",
|
|
438
438
|
"secretlint": "9.0.0",
|
|
439
439
|
"semantic-release": "^24.2.0",
|
|
440
440
|
"sort-package-json": "^2.10.1",
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
"typedoc-plugin-markdown": "4.2.10",
|
|
448
448
|
"typedoc-plugin-rename-defaults": "0.7.1",
|
|
449
449
|
"typescript": "^5.6.3",
|
|
450
|
-
"vitest": "^2.1.
|
|
450
|
+
"vitest": "^2.1.5"
|
|
451
451
|
},
|
|
452
452
|
"peerDependencies": {
|
|
453
453
|
"@ckeditor/typedoc-plugins": ">=44.0.0",
|