@visulima/packem 2.0.0-alpha.3 → 2.0.0-alpha.31
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 +364 -1
- package/LICENSE.md +475 -1347
- package/README.md +16 -12
- package/dist/builder/typedoc/index.d.ts +6 -3
- package/dist/builder/typedoc/index.js +3 -3
- package/dist/cli/index.js +37 -37
- package/dist/config/index.d.ts +6 -3
- package/dist/index.d.ts +8 -5
- package/dist/index.js +1 -1
- package/dist/packem_shared/default-BYM_JvQL.js +1 -0
- package/dist/packem_shared/{default-B6X7-Lx3.js → default-BY_XZBkt.js} +1 -1
- package/dist/packem_shared/default-Bv0h8ASu.js +1 -0
- package/dist/packem_shared/default-CAKCVA5N.js +1 -0
- package/dist/packem_shared/{default-DqRcOUe1.js → default-CTOd1a5W.js} +1 -1
- package/dist/packem_shared/esbuildPlugin-DpLtQGuZ-DlbvGoD-.js +3 -0
- package/dist/packem_shared/index-CMiSObms.js +178 -0
- package/dist/packem_shared/{index-DySckW0r.d.ts → index-D09qw6EP.d.ts} +209 -328
- package/dist/packem_shared/isolatedDeclarationsTypescriptTransformer-DkuEkofo-CfOpxpsh.js +3 -0
- package/dist/packem_shared/oxcResolvePlugin-Ccef6pyL-VBndJ7ld.js +1 -0
- package/dist/packem_shared/resolveTypescriptMjsCtsPlugin-DcZrZTmM-D4oir4A1.js +6 -0
- package/dist/packem_shared/{types-CaBbG-vU.d.ts → types-B5hAMUkV.d.ts} +16 -4
- package/dist/rollup/plugins/css/loaders/less.d.ts +1 -1
- package/dist/rollup/plugins/css/loaders/less.js +1 -1
- package/dist/rollup/plugins/css/loaders/lightningcss.d.ts +1 -1
- package/dist/rollup/plugins/css/loaders/lightningcss.js +1 -1
- package/dist/rollup/plugins/css/loaders/postcss.d.ts +1 -1
- package/dist/rollup/plugins/css/loaders/postcss.js +1 -1
- package/dist/rollup/plugins/css/loaders/sass.d.ts +1 -1
- package/dist/rollup/plugins/css/loaders/sass.js +1 -1
- package/dist/rollup/plugins/css/loaders/sourcemap.d.ts +9 -8
- package/dist/rollup/plugins/css/loaders/sourcemap.js +1 -1
- package/dist/rollup/plugins/css/loaders/stylus.d.ts +1 -1
- package/dist/rollup/plugins/css/loaders/stylus.js +1 -1
- package/dist/rollup/plugins/css/loaders/tailwindcss.d.ts +1 -0
- package/dist/rollup/plugins/css/loaders/tailwindcss.js +1 -0
- package/dist/rollup/plugins/css/minifiers/cssnano.d.ts +1 -1
- package/dist/rollup/plugins/css/minifiers/cssnano.js +1 -1
- package/dist/rollup/plugins/css/minifiers/lightningcss.d.ts +1 -1
- package/dist/rollup/plugins/css/minifiers/lightningcss.js +1 -1
- package/dist/rollup/plugins/esbuild/index.d.ts +4 -2
- package/dist/rollup/plugins/esbuild/index.js +1 -1
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.ts +5 -3
- package/dist/rollup/plugins/oxc/oxc-transformer.d.ts +4 -2
- package/dist/rollup/plugins/sucrase/index.d.ts +3 -1
- package/dist/rollup/plugins/sucrase/index.js +1 -1
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.ts +9 -2
- package/dist/rollup/plugins/swc/swc-plugin.d.ts +4 -8
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.ts +3 -1
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.js +1 -1
- package/files.d.ts +37 -0
- package/package.json +50 -26
- package/dist/packem_shared/default-B_dUKZ_J.js +0 -1
- package/dist/packem_shared/default-C3sdXf4G.js +0 -1
- package/dist/packem_shared/default-DR5Fia_R.js +0 -1
- package/dist/packem_shared/esbuildPlugin-BAwyhG6L-yty60jMl.js +0 -3
- package/dist/packem_shared/index-DWE3PZRE.js +0 -138
- package/dist/packem_shared/isolatedDeclarationsTypescriptTransformer-DkuEkofo-Cwe3ODMG.js +0 -3
- package/dist/packem_shared/oxcResolvePlugin-BJpi-eSG-BsYx9cDO.js +0 -1
- package/dist/packem_shared/resolveTypescriptMjsCtsPlugin-DcZrZTmM-BEkYWTsH.js +0 -6
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var g=Object.defineProperty;var l=(e,r)=>g(e,"name",{value:r,configurable:!0});import{createRequire as f}from"node:module";const y=f(import.meta.url),{transpileDeclaration:v,formatDiagnostics:d,sys:n}=y("typescript");var N=Object.defineProperty,C=l((e,r)=>N(e,"name",{value:r,configurable:!0}),"p"),D=Object.defineProperty,b=C((e,r)=>D(e,"name",{value:r,configurable:!0}),"l"),j=Object.defineProperty,t=b((e,r)=>j(e,"name",{value:r,configurable:!0}),"s");const O=t(e=>{const r=e.split(`
|
|
2
|
+
`);return r.at(-1)?.startsWith("//# sourceMappingURL=")?r.slice(0,-1).join(`
|
|
3
|
+
`):e},"stripMapUrl"),M=t(async(e,r,u,o)=>{const s={declarationMap:u,...o?.compilerOptions};let{diagnostics:c,outputText:i,sourceMapText:a}=v(r,{fileName:e,reportDiagnostics:!0,...o,compilerOptions:s});s.declarationMap&&(i=O(i));const m=c?.length?[d(c,{getCanonicalFileName:t(p=>n.useCaseSensitiveFileNames?p:p.toLowerCase(),"getCanonicalFileName"),getCurrentDirectory:t(()=>n.getCurrentDirectory(),"getCurrentDirectory"),getNewLine:t(()=>n.newLine,"getNewLine")})]:[];return a&&(a=JSON.parse(a).mappings),{errors:m,map:a,sourceText:i}},"isolatedDeclarationsTypescriptTransformer");export{M as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var P=Object.defineProperty;var x=(r,e)=>P(r,"name",{value:e,configurable:!0});import{createRequire as _}from"node:module";import{createFilter as S}from"@rollup/pluginutils";import{findPackageJson as k}from"@visulima/package/package-json";import{dirname as n}from"@visulima/path";const F=_(import.meta.url),{ResolverFactory:O}=F("oxc-resolver");var q=Object.defineProperty,M=x((r,e)=>q(r,"name",{value:e,configurable:!0}),"y"),A=Object.defineProperty,J=M((r,e)=>A(r,"name",{value:e,configurable:!0}),"g"),z=Object.defineProperty,u=J((r,e)=>z(r,"name",{value:e,configurable:!0}),"a");let y;const I=new Map,H=u((r,e,h,m)=>{const{ignoreSideEffectsForRoot:E,...a}=r;let c=y;return c||(c=y=new O({...a,roots:[...a.roots??[],e],tsconfig:m?{configFile:m,references:"auto"}:void 0})),{name:"oxc-resolve",resolveId:{async handler(p,l,{isEntry:R}){const v=R||!l?n(p):n(l),{error:g,path:t}=await c.async(v,p);if(g){h.debug(g,{context:[{basedir:e,extensions:a.extensions,id:t}]});return}let f=u(s=>!1,"hasModuleSideEffects");try{const{packageJson:s,path:j}=await k(n(t),{cache:I}),b=n(j);if(!E||e!==b){const i=s.sideEffects;if(typeof i=="boolean")f=u(()=>i,"hasModuleSideEffects");else if(Array.isArray(i)){const w=i.map(d=>d.includes("/")?d:`**/${d}`);f=S(w,void 0,{resolve:b})}}}catch(s){console.debug(s.message,{context:[{basedir:v,caller:"Resolver",error:s,extensions:a.extensions,id:t}]})}const o=await this.resolve(t,l,{skipSelf:!0});if(o)return o.external?!1:o.id!==t?o:{id:t,meta:o.meta,moduleSideEffects:f(t)}},order:"post"}}},"oxcResolvePlugin");export{H as z};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var E=Object.defineProperty;var u=(t,e)=>E(t,"name",{value:e,configurable:!0});import{createRequire as M}from"node:module";import{parse as F}from"@babel/parser";import{findStaticImports as Z}from"mlly";import{isAbsolute as z,join as N,dirname as G,resolve as B}from"@visulima/path";import{isRelative as H}from"@visulima/path/utils";const U=M(import.meta.url),L=U("magic-string");var J=Object.defineProperty,m=u((t,e)=>J(t,"name",{value:e,configurable:!0}),"u$1"),K=Object.defineProperty,h=m((t,e)=>K(t,"name",{value:e,configurable:!0}),"n"),Q=Object.defineProperty,x=h((t,e)=>Q(t,"name",{value:e,configurable:!0}),"i");let I=class{static{u(this,"y")}static{m(this,"_")}static{h(this,"WalkerBase")}static{x(this,"WalkerBase")}constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:x(()=>this.should_skip=!0,"skip"),remove:x(()=>this.should_remove=!0,"remove"),replace:x(e=>this.replacement=e,"replace")}}replace(e,s,r,n){e&&s&&(r!=null?e[s][r]=n:e[s]=n)}remove(e,s,r){e&&s&&(r!=null?e[s].splice(r,1):delete e[s])}};var V=Object.defineProperty,g=h((t,e)=>V(t,"name",{value:e,configurable:!0}),"c$1");let X=class extends I{static{u(this,"A")}static{m(this,"x")}static{h(this,"SyncWalker")}static{g(this,"SyncWalker")}constructor(e,s){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:g(()=>this.should_skip=!0,"skip"),remove:g(()=>this.should_remove=!0,"remove"),replace:g(r=>this.replacement=r,"replace")},this.enter=e,this.leave=s}visit(e,s,r,n){if(e){if(this.enter){const i=this.should_skip,o=this.should_remove,l=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,s,r,n),this.replacement&&(e=this.replacement,this.replace(s,r,n,e)),this.should_remove&&this.remove(s,r,n);const a=this.should_skip,p=this.should_remove;if(this.should_skip=i,this.should_remove=o,this.replacement=l,a)return e;if(p)return null}let c;for(c in e){const i=e[c];if(i&&typeof i=="object")if(Array.isArray(i)){const o=i;for(let l=0;l<o.length;l+=1){const a=o[l];$(a)&&(this.visit(a,e,c,l)||l--)}}else $(i)&&this.visit(i,e,c,null)}if(this.leave){const i=this.replacement,o=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,s,r,n),this.replacement&&(e=this.replacement,this.replace(s,r,n,e)),this.should_remove&&this.remove(s,r,n);const l=this.should_remove;if(this.replacement=i,this.should_remove=o,l)return null}}return e}};function $(t){return t!==null&&typeof t=="object"&&"type"in t&&typeof t.type=="string"}u($,"d$2");m($,"f");h($,"n");g($,"isNode");var Y=Object.defineProperty,y=h((t,e)=>Y(t,"name",{value:e,configurable:!0}),"c");let ee=class extends I{static{u(this,"P")}static{m(this,"j")}static{h(this,"AsyncWalker")}static{y(this,"AsyncWalker")}constructor(e,s){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:y(()=>this.should_skip=!0,"skip"),remove:y(()=>this.should_remove=!0,"remove"),replace:y(r=>this.replacement=r,"replace")},this.enter=e,this.leave=s}async visit(e,s,r,n){if(e){if(this.enter){const i=this.should_skip,o=this.should_remove,l=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,await this.enter.call(this.context,e,s,r,n),this.replacement&&(e=this.replacement,this.replace(s,r,n,e)),this.should_remove&&this.remove(s,r,n);const a=this.should_skip,p=this.should_remove;if(this.should_skip=i,this.should_remove=o,this.replacement=l,a)return e;if(p)return null}let c;for(c in e){const i=e[c];if(i&&typeof i=="object")if(Array.isArray(i)){const o=i;for(let l=0;l<o.length;l+=1){const a=o[l];b(a)&&(await this.visit(a,e,c,l)||l--)}}else b(i)&&await this.visit(i,e,c,null)}if(this.leave){const i=this.replacement,o=this.should_remove;this.replacement=null,this.should_remove=!1,await this.leave.call(this.context,e,s,r,n),this.replacement&&(e=this.replacement,this.replace(s,r,n,e)),this.should_remove&&this.remove(s,r,n);const l=this.should_remove;if(this.replacement=i,this.should_remove=o,l)return null}}return e}};function b(t){return t!==null&&typeof t=="object"&&"type"in t&&typeof t.type=="string"}u(b,"f$2");m(b,"d");h(b,"a$1");y(b,"isNode");var te=Object.defineProperty,C=h((t,e)=>te(t,"name",{value:e,configurable:!0}),"a");function j(t,{enter:e,leave:s}){return new X(e,s).visit(t,null)}u(j,"k$1");m(j,"A");h(j,"walk");C(j,"walk");async function P(t,{enter:e,leave:s}){return await new ee(e,s).visit(t,null)}u(P,"w$3");m(P,"O");h(P,"asyncWalk");C(P,"asyncWalk");var se=Object.defineProperty,A=u((t,e)=>se(t,"name",{value:e,configurable:!0}),"l$1"),re=Object.defineProperty,W=A((t,e)=>re(t,"name",{value:e,configurable:!0}),"l"),ie=Object.defineProperty,d=W((t,e)=>ie(t,"name",{value:e,configurable:!0}),"s");const ne=/\/\*[^*]*\*+(?:[^/*][^*]*\*+)*\//g,oe=/MIT License|MIT license|BSD license/,le=/\n{2,}/g,ae=/\b(\w+)\$\d+\b/g,ce=/[-/\\^$*+?.()|[\]{}]/g,ue=d(t=>t.replaceAll(ce,String.raw`\$&`),"escapeRegex"),pe=d(t=>[...new Set(t)],"unique"),he=d(t=>t.replaceAll(ne,e=>oe.test(e)?"":e).replaceAll(le,`
|
|
2
|
+
|
|
3
|
+
`),"cleanUnnecessaryComments"),R=new Map;function w(t,e,{identifierReplacements:s},r){const n=Z(t);for(const i in s){const o=n.find(a=>a.specifier===i&&a.imports.includes("{"));if(!o){this.warn(`${e.fileName} does not import "${i}" for replacement`),process.exitCode=1;continue}const l=s[i];for(const a in l){if(!o.imports.includes(a))throw new Error(`${e.fileName} does not import "${a}" from "${i}" for replacement`);const p=l[a],v=ue(a);p.includes(".")&&(t=t.replace(new RegExp(`\\b\\w+\\b as ${v},?\\s?`),"")),t=t.replaceAll(new RegExp(`\\b${v}\\b`,"g"),p)}}const c=pe(Array.from(t.matchAll(ae),i=>i[0]));if(c.length>0){const i=c.map(l=>`
|
|
4
|
+
- ${l}`).join(""),o=e.fileName.replace(/\.[^/.]+$/,"");R.has(o)||r.warn({message:`${e.fileName} contains confusing identifier names${i}
|
|
5
|
+
|
|
6
|
+
To replace these, add them to the "rollup -> patchTypes -> identifierReplacements" option in your packem config.`,prefix:"plugin:patch-types"}),R.set(o,!0)}return t}u(w,"f$1");A(w,"g");W(w,"N");d(w,"replaceConfusingTypeNames");const fe=d((t,e)=>{if(e.leadingComments?.some(s=>s.type==="CommentBlock"&&s.value.includes("@internal"))){const s=t.original[e.end]===","?e.end+1:e.end;return t.remove(e.leadingComments[0].start,s),!0}return!1},"removeInternal");function O(t,e){if(t.includes("@internal")){const s=new L(t),r=F(t,{plugins:["typescript"],sourceType:"module"});if(j(r,{enter(n){fe(s,n)&&this.skip()}}),t=s.toString(),t.includes("@internal"))throw new Error(`${e.fileName} has unhandled @internal declarations`)}return t}u(O,"u");A(O,"h");W(O,"S");d(O,"stripInternalTypes");const Ke=d((t,e)=>({name:"packem:patch-types",renderChunk(s,r){return s=w.call(this,s,r,t,e),s=O.call(this,s,r),s=he(s),s}}),"patchTypescriptTypes");var me=Object.defineProperty,de=u((t,e)=>me(t,"name",{value:e,configurable:!0}),"d$1"),ve=Object.defineProperty,ge=de((t,e)=>ve(t,"name",{value:e,configurable:!0}),"d"),ye=Object.defineProperty,f=ge((t,e)=>ye(t,"name",{value:e,configurable:!0}),"o");const $e=42,be=f(t=>{let e=!1;for(let s=0;s<t.length;s++)if(t.codePointAt(s)===$e){if(e)return!1;e=!0}return!0},"hasZeroOrOneAsteriskCharacter"),_e=f(t=>{const e=t.indexOf("*");return e===-1?void 0:{prefix:t.slice(0,e),suffix:t.slice(e+1)}},"tryParsePattern"),ke=f(({prefix:t,suffix:e},s)=>s.length>=t.length+e.length&&s.startsWith(t)&&s.endsWith(e),"isPatternMatch"),xe=f((t,e,s)=>{let r,n=-1;for(const c of t){const i=e(c);ke(i,s)&&i.prefix.length>n&&(n=i.prefix.length,r=c)}return r},"findBestPatternMatch"),je=f((t,e)=>{const s=[];for(const r of t){if(!be(r))continue;const n=_e(r);if(n)s.push(n);else if(r===e)return r}return xe(s,r=>r,e)},"matchPatternOrExact"),we=f((t,e)=>e.substring(t.prefix.length,e.length-t.suffix.length),"matchedText"),Oe=f(({prefix:t,suffix:e})=>`${t}*${e}`,"patternText"),Pe=f((t,e,s)=>{let r=G(e.path);e.config.compilerOptions?.baseUrl&&(r=B(t,e.config.compilerOptions.baseUrl)),s?.debug({message:`Resolved baseUrl to ${r}`,prefix:"plugin:resolve-tsconfig-paths"});const n=e.config.compilerOptions?.paths??{};return Object.keys(n).length===0&&s?.debug({message:"No paths found in tsconfig.json",prefix:"plugin:resolve-tsconfig-paths"}),{paths:n,resolvedBaseUrl:r}},"getTsconfigPaths"),Qe=f((t,e,s,r)=>{const{paths:n,resolvedBaseUrl:c}=Pe(t,e,s),i=Object.keys(n);return{name:"plugin:resolve-tsconfig-paths",async resolveId(o,l,a){if(i.length===0)return;if(o.includes("\0")){s.debug({message:`Skipping resolution of ${o} as it is a virtual module`,prefix:"plugin:resolve-tsconfig-paths"});return}if(o.includes("node_modules")){s.debug({message:`Skipping request as it is inside node_modules ${o}`,prefix:"plugin:resolve-tsconfig-paths"});return}if(!r.resolveAbsolutePath&&z(o)){s.debug({message:`Skipping request as it is an absolute path ${o}`,prefix:"plugin:resolve-tsconfig-paths"});return}if(H(o)){s.debug({message:`Skipping request as it is a relative path ${o}`,prefix:"plugin:resolve-tsconfig-paths"});return}const p=je(i,o);if(!p){s.debug({message:`moduleName did not match any paths pattern ${o}`,prefix:"plugin:resolve-tsconfig-paths"});return}const v=typeof p=="string"?void 0:we(p,o),D=typeof p=="string"?p:Oe(p);for await(const T of n[D]){const _=v?T.replace("*",v):T;if(_.endsWith(".d.ts")||_.endsWith(".d.cts")||_.endsWith(".d.mts"))continue;const S=N(c,_);try{const k=await this.resolve(S,l,{skipSelf:!0,...a});if(k)return k}catch(k){s.debug({context:[k],message:`Failed to resolve ${S} from ${o}`,prefix:"plugin:resolve-tsconfig-paths"})}}}}},"resolveTsconfigPathsPlugin");var Ae=Object.defineProperty,We=u((t,e)=>Ae(t,"name",{value:e,configurable:!0}),"f"),Te=Object.defineProperty,Se=We((t,e)=>Te(t,"name",{value:e,configurable:!0}),"a"),Re=Object.defineProperty,q=Se((t,e)=>Re(t,"name",{value:e,configurable:!0}),"u");const Ne=q((t,e)=>{if(!e)return;const{config:s,path:r}=e;if(!s.compilerOptions)return;const{rootDirs:n}=s.compilerOptions;if(!n)return;const c=[];for(const i of n){if(i.startsWith("."))throw new Error(`Invalid rootDir value '.' in ${r}.`);if(i.startsWith(".."))throw new Error(`Invalid rootDir value '..' in ${r}.`);c.push(B(t,i))}return c},"getRootDirectories"),Ve=q((t,e,s)=>{const r=Ne(t,s);return{name:"packem:resolve-tsconfig-root-dirs",async resolveId(n,c,i){if(!(r===void 0||r.length===0)&&n.startsWith("."))for(const o of r){const l=N(o,n),a=await this.resolve(l,c,{skipSelf:!0,...i});if(a)return e.debug({message:`Resolved ${n} to ${a.id} using rootDirs from tsconfig.json.`,prefix:"plugin:resolve-tsconfig-root-dirs"}),a.id}}}},"resolveTsconfigRootDirectories");var Be=Object.defineProperty,Ie=u((t,e)=>Be(t,"name",{value:e,configurable:!0}),"t"),Ce=Object.defineProperty,qe=Ie((t,e)=>Ce(t,"name",{value:e,configurable:!0}),"t"),De=Object.defineProperty,Ee=qe((t,e)=>De(t,"name",{value:e,configurable:!0}),"r");const Xe=Ee(()=>{const t=/\.(?:[mc]?js|jsx)$/;return{name:"packem:resolve-typescript-mjs-cjs",async resolveId(e,s,r){if(t.test(e)&&s)return await this.resolve(e.replace(/js(x?)$/,"ts$1"),s,r)}}},"resolveTypescriptMjsCts");export{Ke as B,Ve as D,Qe as N,Xe as i,j as k};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CheckPackageOptions } from '@arethetypeswrong/core';
|
|
2
|
+
import { B as BuildContext, E as Environment, R as Runtime, I as IsolatedDeclarationsTransformer, F as Format, P as PackemRollupOptions, T as TransformerFn, d as BuildHooks, g as InternalOXCTransformPluginConfig, a as TransformerName, M as Mode } from './index-D09qw6EP.js';
|
|
3
|
+
import { StyleOptions } from '@visulima/rollup-plugin-css';
|
|
3
4
|
import { JitiOptions } from 'jiti';
|
|
4
5
|
import { TypeDocOptions } from 'typedoc';
|
|
5
6
|
|
|
@@ -52,6 +53,12 @@ type ResolveExternalsPluginOptions = {
|
|
|
52
53
|
type DeepPartial<T> = {
|
|
53
54
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
54
55
|
};
|
|
56
|
+
interface AttwOptions extends CheckPackageOptions {
|
|
57
|
+
ignoreScripts?: boolean;
|
|
58
|
+
level?: "error" | "warn";
|
|
59
|
+
pm?: "pnpm" | "yarn" | "npm" | "bun" | "auto";
|
|
60
|
+
profile?: "strict" | "node16" | "esmOnly";
|
|
61
|
+
}
|
|
55
62
|
interface BuildConfig extends DeepPartial<Omit<BuildOptions, "entries">> {
|
|
56
63
|
entries?: (BuildEntry | string)[];
|
|
57
64
|
hooks?: Partial<BuildHooks<InternalBuildOptions>>;
|
|
@@ -94,7 +101,9 @@ interface BuildOptions {
|
|
|
94
101
|
fileCache?: boolean;
|
|
95
102
|
ignoreExportKeys?: string[];
|
|
96
103
|
isolatedDeclarationTransformer?: IsolatedDeclarationsTransformer;
|
|
97
|
-
jiti: Omit<JitiOptions
|
|
104
|
+
jiti: Omit<JitiOptions & {
|
|
105
|
+
absoluteJitiPath?: boolean;
|
|
106
|
+
}, "onError" | "transform">;
|
|
98
107
|
killSignal?: KillSignal;
|
|
99
108
|
minify?: boolean | undefined;
|
|
100
109
|
name: string;
|
|
@@ -113,7 +122,8 @@ interface BuildOptions {
|
|
|
113
122
|
validation?: ValidationOptions | false;
|
|
114
123
|
}
|
|
115
124
|
interface InternalBuildOptions extends BuildOptions {
|
|
116
|
-
rollup:
|
|
125
|
+
rollup: BuildOptions["rollup"] & {
|
|
126
|
+
nativeModules?: NativeModulesOptions | false;
|
|
117
127
|
oxc?: InternalOXCTransformPluginConfig;
|
|
118
128
|
};
|
|
119
129
|
transformerName: TransformerName | undefined;
|
|
@@ -131,6 +141,7 @@ type TypeDocumentOptions = Partial<Omit<TypeDocOptions, "entryPoints" | "hideGen
|
|
|
131
141
|
readmePath?: string;
|
|
132
142
|
};
|
|
133
143
|
type ValidationOptions = {
|
|
144
|
+
attw?: boolean | AttwOptions;
|
|
134
145
|
bundleLimit?: {
|
|
135
146
|
allowFail?: boolean;
|
|
136
147
|
limit?: number | `${number}${"B" | "GB" | "KB" | "MB" | "TB"}`;
|
|
@@ -155,6 +166,7 @@ type ValidationOptions = {
|
|
|
155
166
|
main?: boolean;
|
|
156
167
|
module?: boolean;
|
|
157
168
|
name?: boolean;
|
|
169
|
+
sideEffects?: boolean;
|
|
158
170
|
types?: boolean;
|
|
159
171
|
typesVersions?: boolean;
|
|
160
172
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@visulima/rollup-css
|
|
1
|
+
export { default } from '@visulima/rollup-plugin-css/loader/less';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"@visulima/rollup-css
|
|
1
|
+
import{default as o}from"@visulima/rollup-plugin-css/loader/less";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@visulima/rollup-css
|
|
1
|
+
export { default } from '@visulima/rollup-plugin-css/loader/lightningcss';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"@visulima/rollup-css
|
|
1
|
+
import{default as o}from"@visulima/rollup-plugin-css/loader/lightningcss";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@visulima/rollup-css
|
|
1
|
+
export { default } from '@visulima/rollup-plugin-css/loader/postcss';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"@visulima/rollup-css
|
|
1
|
+
import{default as o}from"@visulima/rollup-plugin-css/loader/postcss";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@visulima/rollup-css
|
|
1
|
+
export { default } from '@visulima/rollup-plugin-css/loader/sass';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"@visulima/rollup-css
|
|
1
|
+
import{default as o}from"@visulima/rollup-plugin-css/loader/sass";export{o as default};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { default } from '@visulima/rollup-css
|
|
2
|
-
import '@visulima/rollup-css
|
|
3
|
-
import '@visulima/rollup-css
|
|
4
|
-
import '@visulima/rollup-css
|
|
5
|
-
import '@visulima/rollup-css
|
|
6
|
-
import '@visulima/rollup-css
|
|
7
|
-
import '@visulima/rollup-css
|
|
8
|
-
import '@visulima/rollup-css
|
|
1
|
+
export { default } from '@visulima/rollup-plugin-css/loader/sourcemap';
|
|
2
|
+
import '@visulima/rollup-plugin-css/loader/less';
|
|
3
|
+
import '@visulima/rollup-plugin-css/loader/postcss';
|
|
4
|
+
import '@visulima/rollup-plugin-css/loader/sass';
|
|
5
|
+
import '@visulima/rollup-plugin-css/loader/stylus';
|
|
6
|
+
import '@visulima/rollup-plugin-css/loader/lightningcss';
|
|
7
|
+
import '@visulima/rollup-plugin-css/loader/tailwindcss';
|
|
8
|
+
import '@visulima/rollup-plugin-css/minifier/cssnano';
|
|
9
|
+
import '@visulima/rollup-plugin-css/minifier/lightningcss';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"@visulima/rollup-css
|
|
1
|
+
import{default as o}from"@visulima/rollup-plugin-css/loader/sourcemap";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@visulima/rollup-css
|
|
1
|
+
export { default } from '@visulima/rollup-plugin-css/loader/stylus';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"@visulima/rollup-css
|
|
1
|
+
import{default as o}from"@visulima/rollup-plugin-css/loader/stylus";export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@visulima/rollup-plugin-css/loader/tailwindcss';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{default as o}from"@visulima/rollup-plugin-css/loader/tailwindcss";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@visulima/rollup-css
|
|
1
|
+
export { default } from '@visulima/rollup-plugin-css/minifier/cssnano';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"@visulima/rollup-css
|
|
1
|
+
import{default as o}from"@visulima/rollup-plugin-css/minifier/cssnano";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@visulima/rollup-css
|
|
1
|
+
export { default } from '@visulima/rollup-plugin-css/minifier/lightningcss';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as o}from"@visulima/rollup-css
|
|
1
|
+
import{default as o}from"@visulima/rollup-plugin-css/minifier/lightningcss";export{o as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TransformerFn } from '../../../packem_shared/index-
|
|
2
|
-
export {
|
|
1
|
+
import { T as TransformerFn } from '../../../packem_shared/index-D09qw6EP.js';
|
|
2
|
+
export { f as EsbuildPluginConfig } from '../../../packem_shared/index-D09qw6EP.js';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -15,6 +15,8 @@ import 'rollup-plugin-visualizer';
|
|
|
15
15
|
import 'esbuild';
|
|
16
16
|
import '@visulima/package';
|
|
17
17
|
import '@visulima/colorize';
|
|
18
|
+
import 'magic-string';
|
|
19
|
+
import 'html-minifier-next';
|
|
18
20
|
import 'oxc-resolver';
|
|
19
21
|
import 'oxc-transform';
|
|
20
22
|
import 'sucrase';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{z as f}from"../../../packem_shared/esbuildPlugin-DpLtQGuZ-DlbvGoD-.js";export{f as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as IsolatedDeclarationsResult, T as TransformerFn } from '../../../packem_shared/index-DySckW0r.js';
|
|
2
1
|
import { IsolatedDeclarationsOptions } from 'oxc-transform';
|
|
2
|
+
import { e as IsolatedDeclarationsResult, T as TransformerFn } from '../../../packem_shared/index-D09qw6EP.js';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -15,11 +15,13 @@ import 'rollup-plugin-visualizer';
|
|
|
15
15
|
import 'esbuild';
|
|
16
16
|
import '@visulima/package';
|
|
17
17
|
import '@visulima/colorize';
|
|
18
|
+
import 'magic-string';
|
|
19
|
+
import 'html-minifier-next';
|
|
18
20
|
import 'oxc-resolver';
|
|
19
21
|
import 'sucrase';
|
|
20
22
|
|
|
21
|
-
declare const oxcTransformPlugin: TransformerFn;
|
|
22
|
-
|
|
23
23
|
declare const isolatedDeclarationsOxcTransformer: (id: string, code: string, sourceMap?: boolean, transformOptions?: Omit<IsolatedDeclarationsOptions, "sourcemap">) => IsolatedDeclarationsResult;
|
|
24
24
|
|
|
25
|
+
declare const oxcTransformPlugin: TransformerFn;
|
|
26
|
+
|
|
25
27
|
export { isolatedDeclarationsOxcTransformer as default, oxcTransformPlugin as o };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { o as default, default as isolatedDeclarationsOxcTransformer } from './isolated-declarations-oxc-transformer.js';
|
|
2
|
-
import '
|
|
2
|
+
import 'oxc-transform';
|
|
3
|
+
import '../../../packem_shared/index-D09qw6EP.js';
|
|
3
4
|
import '@rollup/plugin-alias';
|
|
4
5
|
import '@rollup/plugin-commonjs';
|
|
5
6
|
import '@rollup/plugin-json';
|
|
@@ -15,6 +16,7 @@ import 'rollup-plugin-visualizer';
|
|
|
15
16
|
import 'esbuild';
|
|
16
17
|
import '@visulima/package';
|
|
17
18
|
import '@visulima/colorize';
|
|
19
|
+
import 'magic-string';
|
|
20
|
+
import 'html-minifier-next';
|
|
18
21
|
import 'oxc-resolver';
|
|
19
|
-
import 'oxc-transform';
|
|
20
22
|
import 'sucrase';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as SucrasePluginConfig, s as default } from '../../../packem_shared/index-
|
|
1
|
+
export { h as SucrasePluginConfig, s as default } from '../../../packem_shared/index-D09qw6EP.js';
|
|
2
2
|
import '@rollup/plugin-alias';
|
|
3
3
|
import '@rollup/plugin-commonjs';
|
|
4
4
|
import '@rollup/plugin-json';
|
|
@@ -14,6 +14,8 @@ import 'rollup-plugin-visualizer';
|
|
|
14
14
|
import 'esbuild';
|
|
15
15
|
import '@visulima/package';
|
|
16
16
|
import '@visulima/colorize';
|
|
17
|
+
import 'magic-string';
|
|
18
|
+
import 'html-minifier-next';
|
|
17
19
|
import 'oxc-resolver';
|
|
18
20
|
import 'oxc-transform';
|
|
19
21
|
import 'sucrase';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{sucrasePlugin as r}from"../../../packem_shared/default-
|
|
1
|
+
import{sucrasePlugin as r}from"../../../packem_shared/default-CAKCVA5N.js";export{r as default};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import '../../../packem_shared/index-DySckW0r.js';
|
|
1
|
+
import { e as IsolatedDeclarationsResult, T as TransformerFn } from '../../../packem_shared/index-D09qw6EP.js';
|
|
3
2
|
import '@rollup/plugin-alias';
|
|
4
3
|
import '@rollup/plugin-commonjs';
|
|
5
4
|
import '@rollup/plugin-json';
|
|
@@ -15,6 +14,14 @@ import 'rollup-plugin-visualizer';
|
|
|
15
14
|
import 'esbuild';
|
|
16
15
|
import '@visulima/package';
|
|
17
16
|
import '@visulima/colorize';
|
|
17
|
+
import 'magic-string';
|
|
18
|
+
import 'html-minifier-next';
|
|
18
19
|
import 'oxc-resolver';
|
|
19
20
|
import 'oxc-transform';
|
|
20
21
|
import 'sucrase';
|
|
22
|
+
|
|
23
|
+
declare const isolatedDeclarationsSwcTransformer: (id: string, code: string, sourceMap?: boolean) => Promise<IsolatedDeclarationsResult>;
|
|
24
|
+
|
|
25
|
+
declare const _default: TransformerFn;
|
|
26
|
+
|
|
27
|
+
export { _default as _, isolatedDeclarationsSwcTransformer as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export { S as SwcPluginConfig } from '../../../packem_shared/index-
|
|
1
|
+
export { _ as default } from './isolated-declarations-swc-transformer.js';
|
|
2
|
+
export { S as SwcPluginConfig } from '../../../packem_shared/index-D09qw6EP.js';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -15,12 +15,8 @@ import 'rollup-plugin-visualizer';
|
|
|
15
15
|
import 'esbuild';
|
|
16
16
|
import '@visulima/package';
|
|
17
17
|
import '@visulima/colorize';
|
|
18
|
+
import 'magic-string';
|
|
19
|
+
import 'html-minifier-next';
|
|
18
20
|
import 'oxc-resolver';
|
|
19
21
|
import 'oxc-transform';
|
|
20
22
|
import 'sucrase';
|
|
21
|
-
|
|
22
|
-
declare const _default: TransformerFn;
|
|
23
|
-
|
|
24
|
-
declare const isolatedDeclarationsSwcTransformer: (id: string, code: string, sourceMap?: boolean) => Promise<IsolatedDeclarationsResult>;
|
|
25
|
-
|
|
26
|
-
export { _default as default, isolatedDeclarationsSwcTransformer as i };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TranspileOptions } from 'typescript';
|
|
2
|
-
import {
|
|
2
|
+
import { e as IsolatedDeclarationsResult } from '../../../packem_shared/index-D09qw6EP.js';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -15,6 +15,8 @@ import 'rollup-plugin-visualizer';
|
|
|
15
15
|
import 'esbuild';
|
|
16
16
|
import '@visulima/package';
|
|
17
17
|
import '@visulima/colorize';
|
|
18
|
+
import 'magic-string';
|
|
19
|
+
import 'html-minifier-next';
|
|
18
20
|
import 'oxc-resolver';
|
|
19
21
|
import 'oxc-transform';
|
|
20
22
|
import 'sucrase';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as f}from"../../../packem_shared/isolatedDeclarationsTypescriptTransformer-DkuEkofo-
|
|
1
|
+
import{v as f}from"../../../packem_shared/isolatedDeclarationsTypescriptTransformer-DkuEkofo-CfOpxpsh.js";export{f as default};
|
package/files.d.ts
CHANGED
|
@@ -223,3 +223,40 @@ declare module "*?raw" {
|
|
|
223
223
|
|
|
224
224
|
export default source;
|
|
225
225
|
}
|
|
226
|
+
|
|
227
|
+
// Data URI plugin support
|
|
228
|
+
declare module "*?data-uri" {
|
|
229
|
+
const dataUri: string;
|
|
230
|
+
|
|
231
|
+
export default dataUri;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
declare module "*?data-uri&encoding=css" {
|
|
235
|
+
const dataUri: string;
|
|
236
|
+
|
|
237
|
+
export default dataUri;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare module "*?data-uri&encoding=tiny" {
|
|
241
|
+
const dataUri: string;
|
|
242
|
+
|
|
243
|
+
export default dataUri;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
declare module "*?data-uri&srcset" {
|
|
247
|
+
const dataUri: string;
|
|
248
|
+
|
|
249
|
+
export default dataUri;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
declare module "*?data-uri&encoding=css&srcset" {
|
|
253
|
+
const dataUri: string;
|
|
254
|
+
|
|
255
|
+
export default dataUri;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
declare module "*?data-uri&encoding=tiny&srcset" {
|
|
259
|
+
const dataUri: string;
|
|
260
|
+
|
|
261
|
+
export default dataUri;
|
|
262
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/packem",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.31",
|
|
4
4
|
"description": "A fast and modern bundler for Node.js and TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -102,6 +102,10 @@
|
|
|
102
102
|
"types": "./dist/rollup/plugins/css/loaders/lightningcss.d.ts",
|
|
103
103
|
"default": "./dist/rollup/plugins/css/loaders/lightningcss.js"
|
|
104
104
|
},
|
|
105
|
+
"./css/loader/tailwindcss": {
|
|
106
|
+
"types": "./dist/rollup/plugins/css/loaders/tailwindcss.d.ts",
|
|
107
|
+
"default": "./dist/rollup/plugins/css/loaders/tailwindcss.js"
|
|
108
|
+
},
|
|
105
109
|
"./css/minifier/cssnano": {
|
|
106
110
|
"types": "./dist/rollup/plugins/css/minifiers/cssnano.d.ts",
|
|
107
111
|
"default": "./dist/rollup/plugins/css/minifiers/cssnano.js"
|
|
@@ -110,14 +114,6 @@
|
|
|
110
114
|
"types": "./dist/rollup/plugins/css/minifiers/lightningcss.d.ts",
|
|
111
115
|
"default": "./dist/rollup/plugins/css/minifiers/lightningcss.js"
|
|
112
116
|
},
|
|
113
|
-
"./transformer/esbuild": {
|
|
114
|
-
"types": "./dist/rollup/plugins/esbuild/index.d.ts",
|
|
115
|
-
"default": "./dist/rollup/plugins/esbuild/index.js"
|
|
116
|
-
},
|
|
117
|
-
"./transformer/swc": {
|
|
118
|
-
"types": "./dist/rollup/plugins/swc/swc-plugin.d.ts",
|
|
119
|
-
"default": "./dist/rollup/plugins/swc/swc-plugin.js"
|
|
120
|
-
},
|
|
121
117
|
"./dts/isolated/transformer/swc": {
|
|
122
118
|
"types": "./dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.ts",
|
|
123
119
|
"default": "./dist/rollup/plugins/swc/isolated-declarations-swc-transformer.js"
|
|
@@ -130,6 +126,14 @@
|
|
|
130
126
|
"types": "./dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.ts",
|
|
131
127
|
"default": "./dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.js"
|
|
132
128
|
},
|
|
129
|
+
"./transformer/esbuild": {
|
|
130
|
+
"types": "./dist/rollup/plugins/esbuild/index.d.ts",
|
|
131
|
+
"default": "./dist/rollup/plugins/esbuild/index.js"
|
|
132
|
+
},
|
|
133
|
+
"./transformer/swc": {
|
|
134
|
+
"types": "./dist/rollup/plugins/swc/swc-plugin.d.ts",
|
|
135
|
+
"default": "./dist/rollup/plugins/swc/swc-plugin.js"
|
|
136
|
+
},
|
|
133
137
|
"./transformer/sucrase": {
|
|
134
138
|
"types": "./dist/rollup/plugins/sucrase/index.d.ts",
|
|
135
139
|
"default": "./dist/rollup/plugins/sucrase/index.js"
|
|
@@ -160,41 +164,49 @@
|
|
|
160
164
|
"dependencies": {
|
|
161
165
|
"@antfu/install-pkg": "1.1.0",
|
|
162
166
|
"@clack/prompts": "0.11.0",
|
|
163
|
-
"@rollup/pluginutils": "5.
|
|
164
|
-
"@visulima/cerebro": "1.1.
|
|
167
|
+
"@rollup/pluginutils": "5.3.0",
|
|
168
|
+
"@visulima/cerebro": "1.1.50",
|
|
165
169
|
"@visulima/colorize": "1.4.23",
|
|
166
|
-
"@visulima/find-cache-dir": "1.0.
|
|
167
|
-
"@visulima/fs": "3.1.
|
|
170
|
+
"@visulima/find-cache-dir": "1.0.34",
|
|
171
|
+
"@visulima/fs": "3.1.8",
|
|
168
172
|
"@visulima/humanizer": "1.2.2",
|
|
169
|
-
"@visulima/package": "
|
|
170
|
-
"@visulima/packem-rollup": "1.0.0-alpha.
|
|
171
|
-
"@visulima/packem-share": "1.0.0-alpha.
|
|
172
|
-
"@visulima/pail": "2.1.
|
|
173
|
+
"@visulima/package": "4.0.0",
|
|
174
|
+
"@visulima/packem-rollup": "1.0.0-alpha.24",
|
|
175
|
+
"@visulima/packem-share": "1.0.0-alpha.13",
|
|
176
|
+
"@visulima/pail": "2.1.28",
|
|
173
177
|
"@visulima/path": "1.4.0",
|
|
174
|
-
"@visulima/rollup-css
|
|
178
|
+
"@visulima/rollup-plugin-css": "1.0.0-alpha.7",
|
|
175
179
|
"@visulima/source-map": "1.0.20",
|
|
176
|
-
"@visulima/
|
|
177
|
-
"
|
|
180
|
+
"@visulima/tabular": "^2.0.2",
|
|
181
|
+
"@visulima/tsconfig": "1.1.22",
|
|
182
|
+
"browserslist": "4.26.2",
|
|
183
|
+
"cjs-module-lexer": "^2.1.0",
|
|
184
|
+
"clean-css": "^5.3.3",
|
|
178
185
|
"defu": "6.1.4",
|
|
179
186
|
"fastest-levenshtein": "1.0.16",
|
|
180
187
|
"hookable": "5.5.3",
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
188
|
+
"html-minifier-next": "^3.1.0",
|
|
189
|
+
"jiti": "2.6.0",
|
|
190
|
+
"magic-string": "0.30.19",
|
|
191
|
+
"mlly": "1.8.0",
|
|
184
192
|
"picomatch": "4.0.3",
|
|
185
|
-
"rollup": "4.
|
|
193
|
+
"rollup": "^4.52.5",
|
|
186
194
|
"semver": "7.7.2",
|
|
187
195
|
"tinyexec": "1.0.1",
|
|
188
|
-
"tinyglobby": "0.2.
|
|
196
|
+
"tinyglobby": "0.2.15"
|
|
189
197
|
},
|
|
190
198
|
"peerDependencies": {
|
|
199
|
+
"@arethetypeswrong/core": ">=0.18.2",
|
|
191
200
|
"@swc/core": ">=1.11.29",
|
|
201
|
+
"@tailwindcss/node": "^4.1.16",
|
|
202
|
+
"@tailwindcss/oxide": "^4.1.16",
|
|
192
203
|
"cssnano": ">=7.0.6",
|
|
193
204
|
"esbuild": ">=0.20.2",
|
|
194
205
|
"icss-utils": ">=5.1.0",
|
|
195
206
|
"less": ">=4.2.0",
|
|
196
207
|
"lightningcss": ">=1.27.0",
|
|
197
208
|
"oxc-transform": ">=0.20.0",
|
|
209
|
+
"package-manager-detector": "^1.5.0",
|
|
198
210
|
"postcss": ">=8.4.47",
|
|
199
211
|
"postcss-load-config": ">=6.0.1",
|
|
200
212
|
"postcss-modules-extract-imports": ">=3.1.0",
|
|
@@ -212,12 +224,21 @@
|
|
|
212
224
|
"typescript": ">=4.5 || >=5.0"
|
|
213
225
|
},
|
|
214
226
|
"peerDependenciesMeta": {
|
|
227
|
+
"@arethetypeswrong/core": {
|
|
228
|
+
"optional": true
|
|
229
|
+
},
|
|
215
230
|
"@ckeditor/typedoc-plugins": {
|
|
216
231
|
"optional": true
|
|
217
232
|
},
|
|
218
233
|
"@swc/core": {
|
|
219
234
|
"optional": true
|
|
220
235
|
},
|
|
236
|
+
"@tailwindcss/node": {
|
|
237
|
+
"optional": true
|
|
238
|
+
},
|
|
239
|
+
"@tailwindcss/oxide": {
|
|
240
|
+
"optional": true
|
|
241
|
+
},
|
|
221
242
|
"cssnano": {
|
|
222
243
|
"optional": true
|
|
223
244
|
},
|
|
@@ -280,10 +301,13 @@
|
|
|
280
301
|
},
|
|
281
302
|
"typescript": {
|
|
282
303
|
"optional": true
|
|
304
|
+
},
|
|
305
|
+
"which-pm-runs": {
|
|
306
|
+
"optional": true
|
|
283
307
|
}
|
|
284
308
|
},
|
|
285
309
|
"engines": {
|
|
286
|
-
"node": ">=20
|
|
310
|
+
"node": ">=20.19 <=25.*"
|
|
287
311
|
},
|
|
288
312
|
"publishConfig": {
|
|
289
313
|
"access": "public",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var m=Object.defineProperty;var n=(e,r)=>m(e,"name",{value:r,configurable:!0});import{createFilter as f}from"@rollup/pluginutils";import{f as l}from"./index-CUp9WuCG.js";import{transform as p}from"sucrase";var d=Object.defineProperty,v=n((e,r)=>d(e,"name",{value:r,configurable:!0}),"n"),b=Object.defineProperty,P=v((e,r)=>b(e,"name",{value:r,configurable:!0}),"a"),g=Object.defineProperty,y=P((e,r)=>g(e,"name",{value:r,configurable:!0}),"n");const o=y(({exclude:e,include:r,...t})=>{const c=f(r,e??l);return{name:"packem:sucrase",async transform(u,a){if(!c(a))return;const{code:s,sourceMap:i}=p(u,{...t,filePath:a,sourceMapOptions:{compiledFilename:a}});return{code:s,map:i}}}},"sucraseTransformPlugin");o.NAME="sucrase";const F=o;export{F as sucrasePlugin};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as a}from"./swcPlugin-Boip4lWG-CwJ-HVJc.js";import{u as e}from"./isolatedDeclarationsSwcTransformer-Ch2AgtWC-B-0lOgFf.js";export{e as isolatedDeclarationsSwcTransformer,a as swcPlugin};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{z as a}from"./oxcResolvePlugin-BJpi-eSG-BsYx9cDO.js";import{n as s}from"./oxcTransformPlugin-DfVQouIB-Cpfv95eA.js";import{d as x}from"./isolatedDeclarationsOxcTransformer-WbfE6cGu-NeZOx2Y7.js";export{x as isolatedDeclarationsOxcTransformer,a as oxcResolvePlugin,s as oxcTransformPlugin};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var x=Object.defineProperty;var b=(e,t)=>x(e,"name",{value:t,configurable:!0});import{createFilter as O}from"@rollup/pluginutils";import{a as k}from"./index-CUp9WuCG.js";import{extname as M,join as P}from"@visulima/path";import{transform as h,formatMessages as $,build as E}from"esbuild";import{findCacheDirSync as S}from"@visulima/find-cache-dir";import{readFileSync as W}from"@visulima/fs";import{init as A,parse as C}from"es-module-lexer";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
|
|
2
|
-
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
3
|
-
var F=Object.defineProperty,I=b((e,t)=>F(e,"name",{value:t,configurable:!0}),"b"),R=Object.defineProperty,f=I((e,t)=>R(e,"name",{value:t,configurable:!0}),"u"),q=Object.defineProperty,N=f((e,t)=>q(e,"name",{value:t,configurable:!0}),"n$1");const y=N(async(e,t)=>{t.length>0&&(await $(t,{color:!0,kind:"warning"})).forEach(s=>e.warn(s))},"warn");var T=Object.defineProperty,w=f((e,t)=>T(e,"name",{value:t,configurable:!0}),"t");const B=w(e=>{if(e==="es")return"esm";if(e==="cjs")return e},"getEsbuildFormat"),G=w(({sourceMap:e=!0,...t})=>async function(s,n,r){if(t.minify||t.minifyWhitespace||t.minifyIdentifiers||t.minifySyntax){const i=B(r.format),c=await h(s,{format:i,loader:"js",sourcemap:e,...t});if(await y(this,c.warnings),c.code)return{code:c.code,map:c.map||void 0}}},"getRenderChunk");var H=Object.defineProperty,D=f((e,t)=>H(e,"name",{value:t,configurable:!0}),"n");const v=D(e=>e.replaceAll("\\","/"),"slash"),L=D(async e=>{const t=S("@visulima/packem/optimize-deps",{create:!0,cwd:e.cwd});if(!t)throw new Error('[packem:optimize-deps]: failed to find or create cache directory "node_modules/.cache/packem/optimize_deps".');await A,await E({absWorkingDir:e.cwd,bundle:!0,entryPoints:e.include,format:"esm",ignoreAnnotations:!0,metafile:!0,outdir:t,sourcemap:e.sourceMap,splitting:!0,...e.esbuildOptions,plugins:[{name:"optimize-deps",async setup(n){n.onResolve({filter:/.*/},async r=>{if(e.exclude?.includes(r.path))return{external:!0};if(!r.pluginData?.__resolving_dep_path__&&e.include.includes(r.path)){const i=await n.resolve(r.path,{kind:"import-statement",pluginData:{__resolving_dep_path__:!0},resolveDir:r.resolveDir});return i.errors.length>0||i.warnings.length>0?i:{namespace:"optimize-deps",path:r.path,pluginData:{absolute:i.path,resolveDir:r.resolveDir}}}}),n.onLoad({filter:/.*/,namespace:"optimize-deps"},async r=>{const{absolute:i,resolveDir:c}=r.pluginData,[,p]=C(W(i));return{contents:p.length>0?`export * from '${v(i)}'`:`module.exports = require('${v(i)}')`,resolveDir:c}})}},...e.esbuildOptions?.plugins??[]]});const s=new Map;for(const n of e.include)s.set(n,{file:P(t,`${n}.js`)});return{cacheDir:t,optimized:s}},"optimizeDeps");var U=Object.defineProperty,J=f((e,t)=>U(e,"name",{value:t,configurable:!0}),"g");const K=J(({exclude:e,include:t,loaders:s,logger:n,optimizeDeps:r,sourceMap:i,...c})=>{const p=k;if(s!==void 0)for(let[a,o]of Object.entries(s)){const l=a.startsWith(".")?a:`.${a}`;typeof o=="string"?p[l]=o:o||delete p[l]}const j=Object.keys(p),z=new RegExp(`\\.(${j.map(a=>a.slice(1)).join("|")})$`),_=O(t??z,e);let u,g=process.cwd();return{async buildStart(){!r||u||(u=await L({cwd:g,sourceMap:i??!1,...r}),n.debug("optimized %O",u.optimized))},name:"packem:esbuild",options({context:a}){a&&(g=a)},renderChunk:G({...c,sourceMap:i}),async resolveId(a){if(u?.optimized.has(a)){const o=u.optimized.get(a);if(o)return n.debug("resolved %s to %s",a,o.file),o.file}},async transform(a,o){if(!_(o)||u?.optimized.has(o))return;const l=M(o),d=p[l];if(n.debug("transforming %s with %s loader",o,d),!d)return;const m=await h(a,{format:["base64","binary","dataurl","text","json"].includes(d)?"esm":void 0,loader:d,sourcefile:o.replace(/\.[cm]ts/,".ts"),sourcemap:i,...c});if(await y(this,m.warnings),m.code)return{code:m.code,map:m.map||void 0}}}},"esbuildTransformer");K.NAME="esbuild";export{K as _};
|