@visulima/packem 2.0.0-alpha.30 → 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.
Files changed (35) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/LICENSE.md +475 -1347
  3. package/dist/builder/typedoc/index.d.ts +4 -4
  4. package/dist/cli/index.js +2 -2
  5. package/dist/config/index.d.ts +4 -4
  6. package/dist/index.d.ts +6 -6
  7. package/dist/index.js +1 -1
  8. package/dist/packem_shared/{default-C_x8DHoD.js → default-BY_XZBkt.js} +1 -1
  9. package/dist/packem_shared/{default-YwldmWl4.js → default-Bv0h8ASu.js} +1 -1
  10. package/dist/packem_shared/default-CAKCVA5N.js +1 -0
  11. package/dist/packem_shared/{default-CTae39UA.js → default-CTOd1a5W.js} +1 -1
  12. package/dist/packem_shared/esbuildPlugin-DpLtQGuZ-DlbvGoD-.js +3 -0
  13. package/dist/packem_shared/index-CMiSObms.js +178 -0
  14. package/dist/packem_shared/{index-BYO428ZM.d.ts → index-D09qw6EP.d.ts} +91 -341
  15. package/dist/packem_shared/isolatedDeclarationsTypescriptTransformer-DkuEkofo-CfOpxpsh.js +3 -0
  16. package/dist/packem_shared/oxcResolvePlugin-Ccef6pyL-VBndJ7ld.js +1 -0
  17. package/dist/packem_shared/resolveTypescriptMjsCtsPlugin-DcZrZTmM-D4oir4A1.js +6 -0
  18. package/dist/packem_shared/{types-BXtpQcRr.d.ts → types-B5hAMUkV.d.ts} +1 -1
  19. package/dist/rollup/plugins/esbuild/index.d.ts +4 -4
  20. package/dist/rollup/plugins/esbuild/index.js +1 -1
  21. package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.ts +3 -3
  22. package/dist/rollup/plugins/oxc/oxc-transformer.d.ts +3 -3
  23. package/dist/rollup/plugins/sucrase/index.d.ts +3 -3
  24. package/dist/rollup/plugins/sucrase/index.js +1 -1
  25. package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.ts +3 -3
  26. package/dist/rollup/plugins/swc/swc-plugin.d.ts +3 -3
  27. package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.ts +3 -3
  28. package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.js +1 -1
  29. package/package.json +9 -9
  30. package/dist/packem_shared/default-Bi3Aj6a9.js +0 -1
  31. package/dist/packem_shared/esbuildPlugin-BrFhdKJk-C8Y7RuGP.js +0 -3
  32. package/dist/packem_shared/index-dFhGUj4X.js +0 -180
  33. package/dist/packem_shared/isolatedDeclarationsTypescriptTransformer-DkuEkofo-BCM0B079.js +0 -3
  34. package/dist/packem_shared/oxcResolvePlugin-BJpi-eSG-RVsiMbfI.js +0 -1
  35. package/dist/packem_shared/resolveTypescriptMjsCtsPlugin-DcZrZTmM-DYkwKhiN.js +0 -6
@@ -1,5 +1,5 @@
1
1
  import { TranspileOptions } from 'typescript';
2
- import { e as IsolatedDeclarationsResult } from '../../../packem_shared/index-BYO428ZM.js';
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';
@@ -12,11 +12,11 @@ import 'rollup-plugin-dts';
12
12
  import 'rollup-plugin-polyfill-node';
13
13
  import 'rollup-plugin-pure';
14
14
  import 'rollup-plugin-visualizer';
15
- import 'magic-string';
16
- import 'html-minifier-next';
17
15
  import 'esbuild';
18
16
  import '@visulima/package';
19
17
  import '@visulima/colorize';
18
+ import 'magic-string';
19
+ import 'html-minifier-next';
20
20
  import 'oxc-resolver';
21
21
  import 'oxc-transform';
22
22
  import 'sucrase';
@@ -1 +1 @@
1
- import{v as f}from"../../../packem_shared/isolatedDeclarationsTypescriptTransformer-DkuEkofo-BCM0B079.js";export{f as default};
1
+ import{v as f}from"../../../packem_shared/isolatedDeclarationsTypescriptTransformer-DkuEkofo-CfOpxpsh.js";export{f as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/packem",
3
- "version": "2.0.0-alpha.30",
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",
@@ -171,13 +171,13 @@
171
171
  "@visulima/fs": "3.1.8",
172
172
  "@visulima/humanizer": "1.2.2",
173
173
  "@visulima/package": "4.0.0",
174
- "@visulima/packem-rollup": "1.0.0-alpha.23",
174
+ "@visulima/packem-rollup": "1.0.0-alpha.24",
175
175
  "@visulima/packem-share": "1.0.0-alpha.13",
176
176
  "@visulima/pail": "2.1.28",
177
177
  "@visulima/path": "1.4.0",
178
178
  "@visulima/rollup-plugin-css": "1.0.0-alpha.7",
179
179
  "@visulima/source-map": "1.0.20",
180
- "@visulima/tabular": "^1.0.11",
180
+ "@visulima/tabular": "^2.0.2",
181
181
  "@visulima/tsconfig": "1.1.22",
182
182
  "browserslist": "4.26.2",
183
183
  "cjs-module-lexer": "^2.1.0",
@@ -185,12 +185,12 @@
185
185
  "defu": "6.1.4",
186
186
  "fastest-levenshtein": "1.0.16",
187
187
  "hookable": "5.5.3",
188
- "html-minifier-next": "^2.1.7",
188
+ "html-minifier-next": "^3.1.0",
189
189
  "jiti": "2.6.0",
190
190
  "magic-string": "0.30.19",
191
191
  "mlly": "1.8.0",
192
192
  "picomatch": "4.0.3",
193
- "rollup": "^4.52.4",
193
+ "rollup": "^4.52.5",
194
194
  "semver": "7.7.2",
195
195
  "tinyexec": "1.0.1",
196
196
  "tinyglobby": "0.2.15"
@@ -198,15 +198,15 @@
198
198
  "peerDependencies": {
199
199
  "@arethetypeswrong/core": ">=0.18.2",
200
200
  "@swc/core": ">=1.11.29",
201
- "@tailwindcss/node": "^4.1.14",
202
- "@tailwindcss/oxide": "^4.1.14",
201
+ "@tailwindcss/node": "^4.1.16",
202
+ "@tailwindcss/oxide": "^4.1.16",
203
203
  "cssnano": ">=7.0.6",
204
204
  "esbuild": ">=0.20.2",
205
205
  "icss-utils": ">=5.1.0",
206
206
  "less": ">=4.2.0",
207
207
  "lightningcss": ">=1.27.0",
208
208
  "oxc-transform": ">=0.20.0",
209
- "package-manager-detector": "^1.4.0",
209
+ "package-manager-detector": "^1.5.0",
210
210
  "postcss": ">=8.4.47",
211
211
  "postcss-load-config": ">=6.0.1",
212
212
  "postcss-modules-extract-imports": ">=3.1.0",
@@ -307,7 +307,7 @@
307
307
  }
308
308
  },
309
309
  "engines": {
310
- "node": ">=20.19 <=24.*"
310
+ "node": ">=20.19 <=25.*"
311
311
  },
312
312
  "publishConfig": {
313
313
  "access": "public",
@@ -1 +0,0 @@
1
- var l=Object.defineProperty;var o=(e,r)=>l(e,"name",{value:r,configurable:!0});import{createRequire as f}from"node:module";import{createFilter as p}from"@rollup/pluginutils";import{f as d}from"./index-CUp9WuCG.js";const m=f(import.meta.url),O=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process;const{transform:_}=m("sucrase");var b=Object.defineProperty,g=o((e,r)=>b(e,"name",{value:r,configurable:!0}),"n"),v=Object.defineProperty,j=g((e,r)=>v(e,"name",{value:r,configurable:!0}),"a"),P=Object.defineProperty,y=j((e,r)=>P(e,"name",{value:r,configurable:!0}),"n");const n=y(({exclude:e,include:r,...t})=>{const a=p(r,e??d);return{name:"packem:sucrase",async transform(c,s){if(!a(s))return;const{code:i,sourceMap:u}=_(c,{...t,filePath:s,sourceMapOptions:{compiledFilename:s}});return{code:i,map:u}}}},"sucraseTransformPlugin");n.NAME="sucrase";const x=n;export{x as sucrasePlugin};
@@ -1,3 +0,0 @@
1
- var k=Object.defineProperty;var v=(e,r)=>k(e,"name",{value:r,configurable:!0});import{createRequire as M}from"node:module";import{createFilter as P}from"@rollup/pluginutils";import{a as A}from"./index-CUp9WuCG.js";import{extname as $,join as q}from"@visulima/path";import{findCacheDirSync as T}from"@visulima/find-cache-dir";import{readFileSync as S}from"@visulima/fs";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
2
- const require = __cjs_mod__.createRequire(import.meta.url);
3
- const _=M(import.meta.url),ee=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process;const{transform:w,formatMessages:E,build:R}=_("esbuild"),h=_("rs-module-lexer"),W={...h,default:h};var B=Object.defineProperty,C=v((e,r)=>B(e,"name",{value:r,configurable:!0}),"h"),F=Object.defineProperty,f=C((e,r)=>F(e,"name",{value:r,configurable:!0}),"u"),I=Object.defineProperty,N=f((e,r)=>I(e,"name",{value:r,configurable:!0}),"n$1");const j=N(async(e,r)=>{r.length>0&&(await E(r,{color:!0,kind:"warning"})).forEach(a=>e.warn(a))},"warn");var L=Object.defineProperty,D=f((e,r)=>L(e,"name",{value:r,configurable:!0}),"t");const G=D(e=>{if(e==="es")return"esm";if(e==="cjs")return e},"getEsbuildFormat"),H=D(({sourceMap:e=!0,...r})=>async function(a,s,i){if(r.minify||r.minifyWhitespace||r.minifyIdentifiers||r.minifySyntax){const t=G(i.format),c=await w(a,{format:t,loader:"js",sourcemap:e,...r});if(await j(this,c.warnings),c.code)return{code:c.code,map:c.map||void 0}}},"getRenderChunk");var U=Object.defineProperty,z=f((e,r)=>U(e,"name",{value:r,configurable:!0}),"n");const y=z(e=>e.replaceAll("\\","/"),"slash"),{parseAsync:J}=W,K=z(async e=>{const r=T("@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 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 i=>{if(e.exclude?.includes(i.path))return{external:!0};if(!i.pluginData?.__resolving_dep_path__&&e.include.includes(i.path)){const t=await s.resolve(i.path,{kind:"import-statement",pluginData:{__resolving_dep_path__:!0},resolveDir:i.resolveDir});return t.errors.length>0||t.warnings.length>0?t:{namespace:"optimize-deps",path:i.path,pluginData:{absolute:t.path,resolveDir:i.resolveDir}}}}),s.onLoad({filter:/.*/,namespace:"optimize-deps"},async i=>{const{absolute:t,resolveDir:c}=i.pluginData,u=S(t),{output:g}=await J({input:[{code:u,filename:t}]});return{contents:(g[0]?.exports??[]).length>0?`export * from '${y(t)}'`:`module.exports = require('${y(t)}')`,resolveDir:c}})}},...e.esbuildOptions?.plugins??[]]});const a=new Map;for(const s of e.include)a.set(s,{file:q(r,`${s}.js`)});return{cacheDir:r,optimized:a}},"optimizeDeps");var Q=Object.defineProperty,V=f((e,r)=>Q(e,"name",{value:r,configurable:!0}),"g");const X=V(({exclude:e,include:r,loaders:a,logger:s,optimizeDeps:i,sourceMap:t,...c})=>{const u=A;if(a!==void 0)for(let[o,n]of Object.entries(a)){const p=o.startsWith(".")?o:`.${o}`;typeof n=="string"?u[p]=n:n||delete u[p]}const g=Object.keys(u),x=new RegExp(`\\.(${g.map(o=>o.slice(1)).join("|")})$`),O=P(r??x,e);let l,b=process.cwd();return{async buildStart(){!i||l||(l=await K({cwd:b,sourceMap:t??!1,...i}),s.debug("optimized %O",l.optimized))},name:"packem:esbuild",options({context:o}){o&&(b=o)},renderChunk:H({...c,sourceMap:t}),async resolveId(o){if(l?.optimized.has(o)){const n=l.optimized.get(o);if(n)return s.debug("resolved %s to %s",o,n.file),n.file}},async transform(o,n){if(!O(n)||l?.optimized.has(n))return;const p=$(n),d=u[p];if(s.debug("transforming %s with %s loader",n,d),!d)return;const m=await w(o,{format:["base64","binary","dataurl","text","json"].includes(d)?"esm":void 0,loader:d,sourcefile:n.replace(/\.[cm]ts/,".ts"),sourcemap:t,...c});if(await j(this,m.warnings),m.code)return{code:m.code,map:m.map||void 0}}}},"esbuildTransformer");X.NAME="esbuild";export{X as z};