@visulima/packem 1.0.0-alpha.6 → 1.0.0-alpha.60
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 +395 -0
- package/LICENSE.md +1 -1
- package/README.md +16 -3
- package/dist/cli.mjs +114 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +6 -5
- package/dist/config.d.mts +6 -5
- package/dist/config.d.ts +6 -5
- package/dist/config.mjs +9 -1
- package/dist/create-bundler.cjs +65 -56
- package/dist/create-bundler.d.cts +6 -5
- package/dist/create-bundler.d.mts +6 -5
- package/dist/create-bundler.d.ts +6 -5
- package/dist/create-bundler.mjs +74 -57
- package/dist/rollup/plugins/esbuild/index.cjs +1 -1
- 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.cjs +1 -0
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.cts +26 -0
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.mts +26 -0
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.ts +26 -0
- package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.mjs +9 -0
- package/dist/rollup/plugins/sucrase/index.cjs +1 -1
- package/dist/rollup/plugins/sucrase/index.mjs +9 -1
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.cjs +1 -0
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.cts +26 -0
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.mts +26 -0
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.ts +26 -0
- package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.mjs +9 -0
- package/dist/rollup/plugins/swc/{index.cjs → swc-plugin.cjs} +1 -1
- package/dist/rollup/plugins/swc/{index.d.cts → swc-plugin.d.cts} +1 -1
- package/dist/rollup/plugins/swc/{index.d.mts → swc-plugin.d.mts} +1 -1
- package/dist/rollup/plugins/swc/{index.d.ts → swc-plugin.d.ts} +1 -1
- package/dist/rollup/plugins/swc/swc-plugin.mjs +9 -0
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.cjs +1 -0
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.cts +27 -0
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.mts +27 -0
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.ts +27 -0
- package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.mjs +9 -0
- package/dist/shared/packem.0q8RrsjT.mjs +9 -0
- package/dist/shared/{packem.C44tLE3n.d.cts → packem.99scXwHP.d.cts} +34 -2
- package/dist/shared/{packem.C44tLE3n.d.mts → packem.99scXwHP.d.mts} +34 -2
- package/dist/shared/{packem.C44tLE3n.d.ts → packem.99scXwHP.d.ts} +34 -2
- package/dist/shared/{packem.D1XYCEcD.d.ts → packem.BQE1Mwim.d.ts} +30 -16
- package/dist/shared/{packem.B6x1BqsW.d.cts → packem.BmkzemMv.d.cts} +30 -16
- package/dist/shared/{packem.DbDxKBpP.d.mts → packem.CtbO2Mkx.d.mts} +30 -16
- package/dist/shared/packem.DUZi_m4G.cjs +1 -0
- package/dist/shared/{packem.D09xRBAa.d.cts → packem.Db-Z_7e-.d.cts} +1 -1
- package/dist/shared/{packem.D09xRBAa.d.mts → packem.Db-Z_7e-.d.mts} +1 -1
- package/dist/shared/{packem.D09xRBAa.d.ts → packem.Db-Z_7e-.d.ts} +1 -1
- package/dist/shared/packem.DpOIkJEJ.mjs +9 -0
- package/dist/shared/packem.NVRVuzg1.cjs +1 -0
- package/package.json +127 -81
- package/dist/cli.cjs +0 -2
- package/dist/cli.d.cts +0 -2
- package/dist/cli.d.mts +0 -2
- package/dist/cli.d.ts +0 -2
- package/dist/rollup/plugins/swc/index.mjs +0 -1
- package/dist/shared/packem.Bdmp1hC5.mjs +0 -1
- package/dist/shared/packem.Bj4QPFg7.mjs +0 -1
- package/dist/shared/packem.CEXB7aOL.cjs +0 -1
- package/dist/shared/packem.uvB0cQX0.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var P=Object.defineProperty;var g=(e,r)=>P(e,"name",{value:r,configurable:!0});const _=require("node:fs"),R=require("@rollup/pluginutils"),h=require("@visulima/path"),v=require("esbuild"),z=require("../../../shared/packem.NVRVuzg1.cjs"),x=require("../../../shared/packem.DUZi_m4G.cjs"),$=require("@visulima/find-cache-dir"),C=require("@visulima/fs"),j=require("es-module-lexer");var F=Object.defineProperty,L=g((e,r)=>F(e,"name",{value:r,configurable:!0}),"n");const q=L(async(e,r)=>{r.length>0&&(await v.formatMessages(r,{color:!0,kind:"warning"})).forEach(c=>e.warn(c))},"warn");var S=Object.defineProperty,O=g((e,r)=>S(e,"name",{value:r,configurable:!0}),"t");const W=O(e=>{if(e==="es")return"esm";if(e==="cjs")return e},"getEsbuildFormat"),A=O(({sourceMap:e=!0,...r})=>async function(c,o,i){if(r.minify||r.minifyWhitespace||r.minifyIdentifiers||r.minifySyntax){const n=W(i.format),l=await v.transform(c,{format:n,loader:"js",sourcemap:e,...r});if(await q(this,l.warnings),l.code)return{code:l.code,map:l.map||null}}return null},"getRenderChunk");var I=Object.defineProperty,k=g((e,r)=>I(e,"name",{value:r,configurable:!0}),"o");const E=k(e=>e.replaceAll("\\","/"),"slash"),U=k(async e=>{const r=await $.findCacheDir("@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 j.init,await v.build({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(o){o.onResolve({filter:/.*/},async i=>{if(e.exclude?.includes(i.path))return{external:!0};if(i.pluginData?.__resolving_dep_path__)return null;if(e.include.includes(i.path)){const n=await o.resolve(i.path,{kind:"import-statement",pluginData:{__resolving_dep_path__:!0},resolveDir:i.resolveDir});return n.errors.length>0||n.warnings.length>0?n:{namespace:"optimize-deps",path:i.path,pluginData:{absolute:n.path,resolveDir:i.resolveDir}}}return null}),o.onLoad({filter:/.*/,namespace:"optimize-deps"},async i=>{const{absolute:n,resolveDir:l}=i.pluginData,p=await C.readFile(n),[,m]=j.parse(p);return{contents:m.length>0?`export * from '${E(n)}'`:`module.exports = require('${E(n)}')`,resolveDir:l}})}},...e.esbuildOptions?.plugins??[]]});const c=new Map;for(const o of e.include)c.set(o,{file:h.join(r,`${o}.js`)});return{cacheDir:r,optimized:c}},"optimizeDeps");var X=Object.defineProperty,G=g((e,r)=>X(e,"name",{value:r,configurable:!0}),"w");const T=G(({exclude:e,include:r,loaders:c,logger:o,optimizeDeps:i,sourceMap:n=!0,...l})=>{const p=z.DEFAULT_LOADERS;if(c!==void 0)for(let[t,s]of Object.entries(c))t=t.startsWith(".")?t:`.${t}`,typeof s=="string"?p[t]=s:s||delete p[t];const m=Object.keys(p),M=new RegExp(`\\.(${m.map(t=>t.slice(1)).join("|")})$`),y=R.createFilter(r??M,e??z.EXCLUDE_REGEXP);let d,D=process.cwd();const w=new Map;return{async buildStart(){!i||d||(d=await U({cwd:D,sourceMap:n,...i}),o.debug("optimized %O",d.optimized))},name:"esbuild",options({context:t}){return t&&(D=t),null},renderChunk:A({...l,sourceMap:n}),async resolveId(t,s,{isEntry:b}){if(!s||b||!y(t)||t.startsWith("\0"))return null;if(d?.optimized.has(t)){const a=d.optimized.get(t);if(a)return o.debug("resolved %s to %s",t,a.file),a.file}const u=w.get(t);if(u!==void 0)return u;if(s&&t.startsWith(".")){const a=h.resolve(s?h.dirname(s):process.cwd(),t);let f=x.u(m,a);if(f||!f&&_.existsSync(a)&&_.statSync(a).isDirectory()&&(f=x.u(m,a,!0),f))return w.set(t,f),f}return w.set(t,null),null},async transform(t,s){if(!y(s)||d?.optimized.has(s))return null;const b=h.extname(s),u=p[b];if(o.debug("transforming %s with %s loader",s,u),!u)return null;const a=await v.transform(t,{format:["base64","binary","dataurl","text","json"].includes(u)?"esm":void 0,loader:u,sourcefile:s.replace(/\.[cm]ts/,".ts"),sourcemap:n,...l});return await q(this,a.warnings),a.code?{code:a.code,map:a.map||null}:null}}},"default");module.exports=T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'rollup';
|
|
2
|
-
import { E as EsbuildPluginConfig } from '../../../shared/packem.
|
|
2
|
+
import { E as EsbuildPluginConfig } from '../../../shared/packem.Db-Z_7e-.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 '../../../shared/packem.
|
|
2
|
+
import { E as EsbuildPluginConfig } from '../../../shared/packem.Db-Z_7e-.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 '../../../shared/packem.
|
|
2
|
+
import { E as EsbuildPluginConfig } from '../../../shared/packem.Db-Z_7e-.js';
|
|
3
3
|
import '@rollup/pluginutils';
|
|
4
4
|
import '@visulima/pail';
|
|
5
5
|
import 'esbuild';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var O=Object.defineProperty;var g=(e,r)=>O(e,"name",{value:r,configurable:!0});import{existsSync as k,statSync as M}from"node:fs";import{createFilter as
|
|
1
|
+
var O=Object.defineProperty;var g=(e,r)=>O(e,"name",{value:r,configurable:!0});import{existsSync as k,statSync as M}from"node:fs";import{createFilter as P}from"@rollup/pluginutils";import{join as R,resolve as $,dirname as S,extname as W}from"@visulima/path";import{formatMessages as A,transform as _,build as C}from"esbuild";import{E as F,a as L}from"../../../shared/packem.DpOIkJEJ.mjs";import{u as y}from"../../../shared/packem.0q8RrsjT.mjs";import{findCacheDir as I}from"@visulima/find-cache-dir";import{readFile as U}from"@visulima/fs";import{init as X,parse as q}from"es-module-lexer";
|
|
2
2
|
// -- pack CommonJS Shims --
|
|
3
3
|
import __cjs_url__ from "node:url";
|
|
4
4
|
import __cjs_path__ from "node:path";
|
|
@@ -6,4 +6,4 @@ import __cjs_mod__ from "node:module";
|
|
|
6
6
|
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
7
7
|
const __dirname = __cjs_path__.dirname(__filename);
|
|
8
8
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
9
|
-
var G=Object.defineProperty,T=g((e,r)=>G(e,"name",{value:r,configurable:!0}),"
|
|
9
|
+
var G=Object.defineProperty,T=g((e,r)=>G(e,"name",{value:r,configurable:!0}),"n");const z=T(async(e,r)=>{r.length>0&&(await A(r,{color:!0,kind:"warning"})).forEach(l=>e.warn(l))},"warn");var B=Object.defineProperty,x=g((e,r)=>B(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,i){if(r.minify||r.minifyWhitespace||r.minifyIdentifiers||r.minifySyntax){const n=H(i.format),c=await _(l,{format:n,loader:"js",sourcemap:e,...r});if(await z(this,c.warnings),c.code)return{code:c.code,map:c.map||null}}return null},"getRenderChunk");var K=Object.defineProperty,E=g((e,r)=>K(e,"name",{value:r,configurable:!0}),"o");const D=E(e=>e.replaceAll("\\","/"),"slash"),N=E(async e=>{const r=await I("@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 X,await C({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__)return null;if(e.include.includes(i.path)){const n=await s.resolve(i.path,{kind:"import-statement",pluginData:{__resolving_dep_path__:!0},resolveDir:i.resolveDir});return n.errors.length>0||n.warnings.length>0?n:{namespace:"optimize-deps",path:i.path,pluginData:{absolute:n.path,resolveDir:i.resolveDir}}}return null}),s.onLoad({filter:/.*/,namespace:"optimize-deps"},async i=>{const{absolute:n,resolveDir:c}=i.pluginData,u=await U(n),[,f]=q(u);return{contents:f.length>0?`export * from '${D(n)}'`:`module.exports = require('${D(n)}')`,resolveDir:c}})}},...e.esbuildOptions?.plugins??[]]});const l=new Map;for(const s of e.include)l.set(s,{file:R(r,`${s}.js`)});return{cacheDir:r,optimized:l}},"optimizeDeps");var Q=Object.defineProperty,V=g((e,r)=>Q(e,"name",{value:r,configurable:!0}),"w");const le=V(({exclude:e,include:r,loaders:l,logger:s,optimizeDeps:i,sourceMap:n=!0,...c})=>{const u=L;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 f=Object.keys(u),j=new RegExp(`\\.(${f.map(t=>t.slice(1)).join("|")})$`),w=P(r??j,e??F);let d,b=process.cwd();const h=new Map;return{async buildStart(){!i||d||(d=await N({cwd:b,sourceMap:n,...i}),s.debug("optimized %O",d.optimized))},name:"esbuild",options({context:t}){return t&&(b=t),null},renderChunk:J({...c,sourceMap:n}),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=$(a?S(a):process.cwd(),t);let m=y(f,o);if(m||!m&&k(o)&&M(o).isDirectory()&&(m=y(f,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=W(a),p=u[v];if(s.debug("transforming %s with %s loader",a,p),!p)return null;const o=await _(t,{format:["base64","binary","dataurl","text","json"].includes(p)?"esm":void 0,loader:p,sourcefile:a.replace(/\.[cm]ts/,".ts"),sourcemap:n,...c});return await z(this,o.warnings),o.code?{code:o.code,map:o.map||null}:null}}},"default");export{le as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=Object.defineProperty;var a=(e,r)=>o(e,"name",{value:r,configurable:!0});const s=require("oxc-transform");var t=Object.defineProperty,c=a((e,r)=>t(e,"name",{value:r,configurable:!0}),"o");const n=c((e,r)=>s.isolatedDeclaration(e,r),"isolatedDeclarationsOxcTransformer");module.exports=n;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../shared/packem.BmkzemMv.cjs';
|
|
2
|
+
import '@rollup/plugin-alias';
|
|
3
|
+
import '@rollup/plugin-commonjs';
|
|
4
|
+
import '@rollup/plugin-json';
|
|
5
|
+
import '@rollup/plugin-node-resolve';
|
|
6
|
+
import '@rollup/plugin-replace';
|
|
7
|
+
import '@rollup/plugin-wasm';
|
|
8
|
+
import '@rollup/pluginutils';
|
|
9
|
+
import '@visulima/package';
|
|
10
|
+
import '@visulima/pail';
|
|
11
|
+
import '@visulima/tsconfig';
|
|
12
|
+
import 'hookable';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'rollup';
|
|
15
|
+
import 'rollup-plugin-dts';
|
|
16
|
+
import 'rollup-plugin-polyfill-node';
|
|
17
|
+
import 'rollup-plugin-visualizer';
|
|
18
|
+
import '../../../shared/packem.Db-Z_7e-.cjs';
|
|
19
|
+
import 'esbuild';
|
|
20
|
+
import '../../../shared/packem.DvWhOdt5.cjs';
|
|
21
|
+
import 'sucrase';
|
|
22
|
+
import '../../../shared/packem.99scXwHP.cjs';
|
|
23
|
+
|
|
24
|
+
declare const isolatedDeclarationsOxcTransformer: (id: string, code: string) => IsolatedDeclarationsResult;
|
|
25
|
+
|
|
26
|
+
export { isolatedDeclarationsOxcTransformer as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../shared/packem.CtbO2Mkx.mjs';
|
|
2
|
+
import '@rollup/plugin-alias';
|
|
3
|
+
import '@rollup/plugin-commonjs';
|
|
4
|
+
import '@rollup/plugin-json';
|
|
5
|
+
import '@rollup/plugin-node-resolve';
|
|
6
|
+
import '@rollup/plugin-replace';
|
|
7
|
+
import '@rollup/plugin-wasm';
|
|
8
|
+
import '@rollup/pluginutils';
|
|
9
|
+
import '@visulima/package';
|
|
10
|
+
import '@visulima/pail';
|
|
11
|
+
import '@visulima/tsconfig';
|
|
12
|
+
import 'hookable';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'rollup';
|
|
15
|
+
import 'rollup-plugin-dts';
|
|
16
|
+
import 'rollup-plugin-polyfill-node';
|
|
17
|
+
import 'rollup-plugin-visualizer';
|
|
18
|
+
import '../../../shared/packem.Db-Z_7e-.mjs';
|
|
19
|
+
import 'esbuild';
|
|
20
|
+
import '../../../shared/packem.DvWhOdt5.mjs';
|
|
21
|
+
import 'sucrase';
|
|
22
|
+
import '../../../shared/packem.99scXwHP.mjs';
|
|
23
|
+
|
|
24
|
+
declare const isolatedDeclarationsOxcTransformer: (id: string, code: string) => IsolatedDeclarationsResult;
|
|
25
|
+
|
|
26
|
+
export { isolatedDeclarationsOxcTransformer as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../shared/packem.BQE1Mwim.js';
|
|
2
|
+
import '@rollup/plugin-alias';
|
|
3
|
+
import '@rollup/plugin-commonjs';
|
|
4
|
+
import '@rollup/plugin-json';
|
|
5
|
+
import '@rollup/plugin-node-resolve';
|
|
6
|
+
import '@rollup/plugin-replace';
|
|
7
|
+
import '@rollup/plugin-wasm';
|
|
8
|
+
import '@rollup/pluginutils';
|
|
9
|
+
import '@visulima/package';
|
|
10
|
+
import '@visulima/pail';
|
|
11
|
+
import '@visulima/tsconfig';
|
|
12
|
+
import 'hookable';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'rollup';
|
|
15
|
+
import 'rollup-plugin-dts';
|
|
16
|
+
import 'rollup-plugin-polyfill-node';
|
|
17
|
+
import 'rollup-plugin-visualizer';
|
|
18
|
+
import '../../../shared/packem.Db-Z_7e-.js';
|
|
19
|
+
import 'esbuild';
|
|
20
|
+
import '../../../shared/packem.DvWhOdt5.js';
|
|
21
|
+
import 'sucrase';
|
|
22
|
+
import '../../../shared/packem.99scXwHP.js';
|
|
23
|
+
|
|
24
|
+
declare const isolatedDeclarationsOxcTransformer: (id: string, code: string) => IsolatedDeclarationsResult;
|
|
25
|
+
|
|
26
|
+
export { isolatedDeclarationsOxcTransformer as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var o=Object.defineProperty;var r=(a,e)=>o(a,"name",{value:e,configurable:!0});import{isolatedDeclaration as t}from"oxc-transform";
|
|
2
|
+
// -- pack CommonJS Shims --
|
|
3
|
+
import __cjs_url__ from "node:url";
|
|
4
|
+
import __cjs_path__ from "node:path";
|
|
5
|
+
import __cjs_mod__ from "node:module";
|
|
6
|
+
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = __cjs_path__.dirname(__filename);
|
|
8
|
+
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
9
|
+
var i=Object.defineProperty,l=r((a,e)=>i(a,"name",{value:e,configurable:!0}),"o");const c=l((a,e)=>t(a,e),"isolatedDeclarationsOxcTransformer");export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty;var l=(n,r)=>y(n,"name",{value:r,configurable:!0});const f=require("node:fs"),q=require("@rollup/pluginutils"),d=require("@visulima/path"),
|
|
1
|
+
"use strict";var y=Object.defineProperty;var l=(n,r)=>y(n,"name",{value:r,configurable:!0});const f=require("node:fs"),q=require("@rollup/pluginutils"),d=require("@visulima/path"),g=require("sucrase"),p=require("../../../shared/packem.NVRVuzg1.cjs"),E=require("../../../shared/packem.DUZi_m4G.cjs");var h=Object.defineProperty,x=l((n,r)=>h(n,"name",{value:r,configurable:!0}),"f");const F=x(({exclude:n,extensions:r=p.DEFAULT_EXTENSIONS,include:m,...v})=>{const a=q.createFilter(m,n??p.EXCLUDE_REGEXP),c=new Map;return{async resolveId(e,t,{isEntry:u}){if(!t||u||!a(e)||e.startsWith("\0"))return null;const i=c.get(e);if(i!==void 0)return i;if(t&&e.startsWith(".")){const o=d.resolve(t?d.dirname(t):process.cwd(),e);let s=E.u(r,o);if(s||!s&&f.existsSync(o)&&f.statSync(o).isDirectory()&&(s=E.u(r,o,!0),s))return c.set(e,s),s}return c.set(e,null),null},async transform(e,t){if(!a(t))return null;const{code:u,sourceMap:i}=g.transform(e,{...v,filePath:t,sourceMapOptions:{compiledFilename:t}});return{code:u,map:i}}}},"sucrasePlugin");module.exports=F;
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
var d=Object.defineProperty;var u=(n,e)=>d(n,"name",{value:e,configurable:!0});import{existsSync as E,statSync as y}from"node:fs";import{createFilter as v}from"@rollup/pluginutils";import{resolve as
|
|
1
|
+
var d=Object.defineProperty;var u=(n,e)=>d(n,"name",{value:e,configurable:!0});import{existsSync as E,statSync as y}from"node:fs";import{createFilter as v}from"@rollup/pluginutils";import{resolve as g,dirname as x}from"@visulima/path";import{transform as D}from"sucrase";import{E as P,D as S}from"../../../shared/packem.DpOIkJEJ.mjs";import{u as m}from"../../../shared/packem.0q8RrsjT.mjs";
|
|
2
|
+
// -- pack CommonJS Shims --
|
|
3
|
+
import __cjs_url__ from "node:url";
|
|
4
|
+
import __cjs_path__ from "node:path";
|
|
5
|
+
import __cjs_mod__ from "node:module";
|
|
6
|
+
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = __cjs_path__.dirname(__filename);
|
|
8
|
+
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
9
|
+
var h=Object.defineProperty,F=u((n,e)=>h(n,"name",{value:e,configurable:!0}),"f");const N=F(({exclude:n,extensions:e=S,include:f,...p})=>{const l=v(f,n??P),a=new Map;return{async resolveId(t,r,{isEntry:c}){if(!r||c||!l(t)||t.startsWith("\0"))return null;const s=a.get(t);if(s!==void 0)return s;if(r&&t.startsWith(".")){const i=g(r?x(r):process.cwd(),t);let o=m(e,i);if(o||!o&&E(i)&&y(i).isDirectory()&&(o=m(e,i,!0),o))return a.set(t,o),o}return a.set(t,null),null},async transform(t,r){if(!l(r))return null;const{code:c,sourceMap:s}=D(t,{...p,filePath:r,sourceMapOptions:{compiledFilename:r}});return{code:c,map:s}}}},"sucrasePlugin");export{N as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=Object.defineProperty;var s=(e,r)=>o(e,"name",{value:r,configurable:!0});const c=require("@swc/core");var n=Object.defineProperty,i=s((e,r)=>n(e,"name",{value:r,configurable:!0}),"e");const u=i(async(e,r)=>{try{const t=await c.transform(r,{filename:e,jsc:{experimental:{emitIsolatedDts:!0},parser:{syntax:"typescript",tsx:!1}}}),a=JSON.parse(t.output);return{errors:[],sourceText:a.__swc_isolated_declarations__}}catch(t){return{errors:[t.toString()],sourceText:""}}},"isolatedDeclarationsSwcTransformer");module.exports=u;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../shared/packem.BmkzemMv.cjs';
|
|
2
|
+
import '@rollup/plugin-alias';
|
|
3
|
+
import '@rollup/plugin-commonjs';
|
|
4
|
+
import '@rollup/plugin-json';
|
|
5
|
+
import '@rollup/plugin-node-resolve';
|
|
6
|
+
import '@rollup/plugin-replace';
|
|
7
|
+
import '@rollup/plugin-wasm';
|
|
8
|
+
import '@rollup/pluginutils';
|
|
9
|
+
import '@visulima/package';
|
|
10
|
+
import '@visulima/pail';
|
|
11
|
+
import '@visulima/tsconfig';
|
|
12
|
+
import 'hookable';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'rollup';
|
|
15
|
+
import 'rollup-plugin-dts';
|
|
16
|
+
import 'rollup-plugin-polyfill-node';
|
|
17
|
+
import 'rollup-plugin-visualizer';
|
|
18
|
+
import '../../../shared/packem.Db-Z_7e-.cjs';
|
|
19
|
+
import 'esbuild';
|
|
20
|
+
import '../../../shared/packem.DvWhOdt5.cjs';
|
|
21
|
+
import 'sucrase';
|
|
22
|
+
import '../../../shared/packem.99scXwHP.cjs';
|
|
23
|
+
|
|
24
|
+
declare const isolatedDeclarationsSwcTransformer: (id: string, code: string) => Promise<IsolatedDeclarationsResult>;
|
|
25
|
+
|
|
26
|
+
export { isolatedDeclarationsSwcTransformer as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../shared/packem.CtbO2Mkx.mjs';
|
|
2
|
+
import '@rollup/plugin-alias';
|
|
3
|
+
import '@rollup/plugin-commonjs';
|
|
4
|
+
import '@rollup/plugin-json';
|
|
5
|
+
import '@rollup/plugin-node-resolve';
|
|
6
|
+
import '@rollup/plugin-replace';
|
|
7
|
+
import '@rollup/plugin-wasm';
|
|
8
|
+
import '@rollup/pluginutils';
|
|
9
|
+
import '@visulima/package';
|
|
10
|
+
import '@visulima/pail';
|
|
11
|
+
import '@visulima/tsconfig';
|
|
12
|
+
import 'hookable';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'rollup';
|
|
15
|
+
import 'rollup-plugin-dts';
|
|
16
|
+
import 'rollup-plugin-polyfill-node';
|
|
17
|
+
import 'rollup-plugin-visualizer';
|
|
18
|
+
import '../../../shared/packem.Db-Z_7e-.mjs';
|
|
19
|
+
import 'esbuild';
|
|
20
|
+
import '../../../shared/packem.DvWhOdt5.mjs';
|
|
21
|
+
import 'sucrase';
|
|
22
|
+
import '../../../shared/packem.99scXwHP.mjs';
|
|
23
|
+
|
|
24
|
+
declare const isolatedDeclarationsSwcTransformer: (id: string, code: string) => Promise<IsolatedDeclarationsResult>;
|
|
25
|
+
|
|
26
|
+
export { isolatedDeclarationsSwcTransformer as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { I as IsolatedDeclarationsResult } from '../../../shared/packem.BQE1Mwim.js';
|
|
2
|
+
import '@rollup/plugin-alias';
|
|
3
|
+
import '@rollup/plugin-commonjs';
|
|
4
|
+
import '@rollup/plugin-json';
|
|
5
|
+
import '@rollup/plugin-node-resolve';
|
|
6
|
+
import '@rollup/plugin-replace';
|
|
7
|
+
import '@rollup/plugin-wasm';
|
|
8
|
+
import '@rollup/pluginutils';
|
|
9
|
+
import '@visulima/package';
|
|
10
|
+
import '@visulima/pail';
|
|
11
|
+
import '@visulima/tsconfig';
|
|
12
|
+
import 'hookable';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'rollup';
|
|
15
|
+
import 'rollup-plugin-dts';
|
|
16
|
+
import 'rollup-plugin-polyfill-node';
|
|
17
|
+
import 'rollup-plugin-visualizer';
|
|
18
|
+
import '../../../shared/packem.Db-Z_7e-.js';
|
|
19
|
+
import 'esbuild';
|
|
20
|
+
import '../../../shared/packem.DvWhOdt5.js';
|
|
21
|
+
import 'sucrase';
|
|
22
|
+
import '../../../shared/packem.99scXwHP.js';
|
|
23
|
+
|
|
24
|
+
declare const isolatedDeclarationsSwcTransformer: (id: string, code: string) => Promise<IsolatedDeclarationsResult>;
|
|
25
|
+
|
|
26
|
+
export { isolatedDeclarationsSwcTransformer as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var o=Object.defineProperty;var a=(r,e)=>o(r,"name",{value:e,configurable:!0});import{transform as n}from"@swc/core";
|
|
2
|
+
// -- pack CommonJS Shims --
|
|
3
|
+
import __cjs_url__ from "node:url";
|
|
4
|
+
import __cjs_path__ from "node:path";
|
|
5
|
+
import __cjs_mod__ from "node:module";
|
|
6
|
+
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = __cjs_path__.dirname(__filename);
|
|
8
|
+
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
9
|
+
var c=Object.defineProperty,i=a((r,e)=>c(r,"name",{value:e,configurable:!0}),"e");const u=i(async(r,e)=>{try{const t=await n(e,{filename:r,jsc:{experimental:{emitIsolatedDts:!0},parser:{syntax:"typescript",tsx:!1}}}),s=JSON.parse(t.output);return{errors:[],sourceText:s.__swc_isolated_declarations__}}catch(t){return{errors:[t.toString()],sourceText:""}}},"isolatedDeclarationsSwcTransformer");export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty;var a=(s,r)=>y(s,"name",{value:r,configurable:!0});const f=require("node:fs"),q=require("@rollup/pluginutils"),
|
|
1
|
+
"use strict";var y=Object.defineProperty;var a=(s,r)=>y(s,"name",{value:r,configurable:!0});const f=require("node:fs"),q=require("@rollup/pluginutils"),g=require("@swc/core"),d=require("@visulima/path"),p=require("../../../shared/packem.NVRVuzg1.cjs"),E=require("../../../shared/packem.DUZi_m4G.cjs");var w=Object.defineProperty,x=a((s,r)=>w(s,"name",{value:r,configurable:!0}),"a");const F=x(({exclude:s,extensions:r=p.DEFAULT_EXTENSIONS,include:m,...v})=>{const l=q.createFilter(m,s??p.EXCLUDE_REGEXP),o=new Map;return{async resolveId(e,t,{isEntry:u}){if(!t||u||!l(e)||e.startsWith("\0"))return null;const i=o.get(e);if(i!==void 0)return i;if(t&&e.startsWith(".")){const c=d.resolve(t?d.dirname(t):process.cwd(),e);let n=E.u(r,c);if(n||!n&&f.existsSync(c)&&f.statSync(c).isDirectory()&&(n=E.u(r,c,!0),n))return o.set(e,n),n}return o.set(e,null),null},async transform(e,t){if(!l(t))return null;const{code:u,map:i}=await g.transform(e,{...v,configFile:!1,filename:t,swcrc:!1});return{code:u,map:i}}}},"swcPlugin");module.exports=F;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'rollup';
|
|
2
|
-
import { S as SwcPluginConfig } from '../../../shared/packem.
|
|
2
|
+
import { S as SwcPluginConfig } from '../../../shared/packem.99scXwHP.cjs';
|
|
3
3
|
import '@rollup/pluginutils';
|
|
4
4
|
|
|
5
5
|
declare const swcPlugin: ({ exclude, extensions, include, ...transformOptions }: SwcPluginConfig) => Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'rollup';
|
|
2
|
-
import { S as SwcPluginConfig } from '../../../shared/packem.
|
|
2
|
+
import { S as SwcPluginConfig } from '../../../shared/packem.99scXwHP.mjs';
|
|
3
3
|
import '@rollup/pluginutils';
|
|
4
4
|
|
|
5
5
|
declare const swcPlugin: ({ exclude, extensions, include, ...transformOptions }: SwcPluginConfig) => Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'rollup';
|
|
2
|
-
import { S as SwcPluginConfig } from '../../../shared/packem.
|
|
2
|
+
import { S as SwcPluginConfig } from '../../../shared/packem.99scXwHP.js';
|
|
3
3
|
import '@rollup/pluginutils';
|
|
4
4
|
|
|
5
5
|
declare const swcPlugin: ({ exclude, extensions, include, ...transformOptions }: SwcPluginConfig) => Plugin;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var d=Object.defineProperty;var f=(o,e)=>d(o,"name",{value:e,configurable:!0});import{existsSync as E,statSync as y}from"node:fs";import{createFilter as v}from"@rollup/pluginutils";import{transform as w}from"@swc/core";import{resolve as g,dirname as x}from"@visulima/path";import{E as D,D as S}from"../../../shared/packem.DpOIkJEJ.mjs";import{u as m}from"../../../shared/packem.0q8RrsjT.mjs";
|
|
2
|
+
// -- pack CommonJS Shims --
|
|
3
|
+
import __cjs_url__ from "node:url";
|
|
4
|
+
import __cjs_path__ from "node:path";
|
|
5
|
+
import __cjs_mod__ from "node:module";
|
|
6
|
+
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = __cjs_path__.dirname(__filename);
|
|
8
|
+
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
9
|
+
var F=Object.defineProperty,I=f((o,e)=>F(o,"name",{value:e,configurable:!0}),"a");const T=I(({exclude:o,extensions:e=S,include:u,...p})=>{const l=v(u,o??D),a=new Map;return{async resolveId(t,r,{isEntry:c}){if(!r||c||!l(t)||t.startsWith("\0"))return null;const s=a.get(t);if(s!==void 0)return s;if(r&&t.startsWith(".")){const i=g(r?x(r):process.cwd(),t);let n=m(e,i);if(n||!n&&E(i)&&y(i).isDirectory()&&(n=m(e,i,!0),n))return a.set(t,n),n}return a.set(t,null),null},async transform(t,r){if(!l(r))return null;const{code:c,map:s}=await w(t,{...p,configFile:!1,filename:r,swcrc:!1});return{code:c,map:s}}}},"swcPlugin");export{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var l=Object.defineProperty;var n=(e,t)=>l(e,"name",{value:t,configurable:!0});const r=require("typescript");var g=Object.defineProperty,s=n((e,t)=>g(e,"name",{value:t,configurable:!0}),"e");const u=s(async(e,t,o)=>{const{diagnostics:i,outputText:c}=r.transpileDeclaration(t,{fileName:e,reportDiagnostics:!0,...o});return{errors:i?.length?[r.formatDiagnostics(i,{getCanonicalFileName:s(a=>r.sys.useCaseSensitiveFileNames?a:a.toLowerCase(),"getCanonicalFileName"),getCurrentDirectory:s(()=>r.sys.getCurrentDirectory(),"getCurrentDirectory"),getNewLine:s(()=>r.sys.newLine,"getNewLine")})]:[],sourceText:c}},"isolatedDeclarationsTypescriptTransformer");module.exports=u;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TranspileOptions } from 'typescript';
|
|
2
|
+
import { I as IsolatedDeclarationsResult } from '../../../shared/packem.BmkzemMv.cjs';
|
|
3
|
+
import '@rollup/plugin-alias';
|
|
4
|
+
import '@rollup/plugin-commonjs';
|
|
5
|
+
import '@rollup/plugin-json';
|
|
6
|
+
import '@rollup/plugin-node-resolve';
|
|
7
|
+
import '@rollup/plugin-replace';
|
|
8
|
+
import '@rollup/plugin-wasm';
|
|
9
|
+
import '@rollup/pluginutils';
|
|
10
|
+
import '@visulima/package';
|
|
11
|
+
import '@visulima/pail';
|
|
12
|
+
import '@visulima/tsconfig';
|
|
13
|
+
import 'hookable';
|
|
14
|
+
import 'jiti';
|
|
15
|
+
import 'rollup';
|
|
16
|
+
import 'rollup-plugin-dts';
|
|
17
|
+
import 'rollup-plugin-polyfill-node';
|
|
18
|
+
import 'rollup-plugin-visualizer';
|
|
19
|
+
import '../../../shared/packem.Db-Z_7e-.cjs';
|
|
20
|
+
import 'esbuild';
|
|
21
|
+
import '../../../shared/packem.DvWhOdt5.cjs';
|
|
22
|
+
import 'sucrase';
|
|
23
|
+
import '../../../shared/packem.99scXwHP.cjs';
|
|
24
|
+
|
|
25
|
+
declare const isolatedDeclarationsTypescriptTransformer: (id: string, code: string, transformOptions?: TranspileOptions) => Promise<IsolatedDeclarationsResult>;
|
|
26
|
+
|
|
27
|
+
export { isolatedDeclarationsTypescriptTransformer as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TranspileOptions } from 'typescript';
|
|
2
|
+
import { I as IsolatedDeclarationsResult } from '../../../shared/packem.CtbO2Mkx.mjs';
|
|
3
|
+
import '@rollup/plugin-alias';
|
|
4
|
+
import '@rollup/plugin-commonjs';
|
|
5
|
+
import '@rollup/plugin-json';
|
|
6
|
+
import '@rollup/plugin-node-resolve';
|
|
7
|
+
import '@rollup/plugin-replace';
|
|
8
|
+
import '@rollup/plugin-wasm';
|
|
9
|
+
import '@rollup/pluginutils';
|
|
10
|
+
import '@visulima/package';
|
|
11
|
+
import '@visulima/pail';
|
|
12
|
+
import '@visulima/tsconfig';
|
|
13
|
+
import 'hookable';
|
|
14
|
+
import 'jiti';
|
|
15
|
+
import 'rollup';
|
|
16
|
+
import 'rollup-plugin-dts';
|
|
17
|
+
import 'rollup-plugin-polyfill-node';
|
|
18
|
+
import 'rollup-plugin-visualizer';
|
|
19
|
+
import '../../../shared/packem.Db-Z_7e-.mjs';
|
|
20
|
+
import 'esbuild';
|
|
21
|
+
import '../../../shared/packem.DvWhOdt5.mjs';
|
|
22
|
+
import 'sucrase';
|
|
23
|
+
import '../../../shared/packem.99scXwHP.mjs';
|
|
24
|
+
|
|
25
|
+
declare const isolatedDeclarationsTypescriptTransformer: (id: string, code: string, transformOptions?: TranspileOptions) => Promise<IsolatedDeclarationsResult>;
|
|
26
|
+
|
|
27
|
+
export { isolatedDeclarationsTypescriptTransformer as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TranspileOptions } from 'typescript';
|
|
2
|
+
import { I as IsolatedDeclarationsResult } from '../../../shared/packem.BQE1Mwim.js';
|
|
3
|
+
import '@rollup/plugin-alias';
|
|
4
|
+
import '@rollup/plugin-commonjs';
|
|
5
|
+
import '@rollup/plugin-json';
|
|
6
|
+
import '@rollup/plugin-node-resolve';
|
|
7
|
+
import '@rollup/plugin-replace';
|
|
8
|
+
import '@rollup/plugin-wasm';
|
|
9
|
+
import '@rollup/pluginutils';
|
|
10
|
+
import '@visulima/package';
|
|
11
|
+
import '@visulima/pail';
|
|
12
|
+
import '@visulima/tsconfig';
|
|
13
|
+
import 'hookable';
|
|
14
|
+
import 'jiti';
|
|
15
|
+
import 'rollup';
|
|
16
|
+
import 'rollup-plugin-dts';
|
|
17
|
+
import 'rollup-plugin-polyfill-node';
|
|
18
|
+
import 'rollup-plugin-visualizer';
|
|
19
|
+
import '../../../shared/packem.Db-Z_7e-.js';
|
|
20
|
+
import 'esbuild';
|
|
21
|
+
import '../../../shared/packem.DvWhOdt5.js';
|
|
22
|
+
import 'sucrase';
|
|
23
|
+
import '../../../shared/packem.99scXwHP.js';
|
|
24
|
+
|
|
25
|
+
declare const isolatedDeclarationsTypescriptTransformer: (id: string, code: string, transformOptions?: TranspileOptions) => Promise<IsolatedDeclarationsResult>;
|
|
26
|
+
|
|
27
|
+
export { isolatedDeclarationsTypescriptTransformer as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var l=Object.defineProperty;var o=(e,t)=>l(e,"name",{value:t,configurable:!0});import{transpileDeclaration as g,formatDiagnostics as u,sys as a}from"typescript";
|
|
2
|
+
// -- pack CommonJS Shims --
|
|
3
|
+
import __cjs_url__ from "node:url";
|
|
4
|
+
import __cjs_path__ from "node:path";
|
|
5
|
+
import __cjs_mod__ from "node:module";
|
|
6
|
+
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = __cjs_path__.dirname(__filename);
|
|
8
|
+
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
9
|
+
var m=Object.defineProperty,r=o((e,t)=>m(e,"name",{value:t,configurable:!0}),"e");const y=r(async(e,t,s)=>{const{diagnostics:i,outputText:c}=g(t,{fileName:e,reportDiagnostics:!0,...s});return{errors:i?.length?[u(i,{getCanonicalFileName:r(n=>a.useCaseSensitiveFileNames?n:n.toLowerCase(),"getCanonicalFileName"),getCurrentDirectory:r(()=>a.getCurrentDirectory(),"getCurrentDirectory"),getNewLine:r(()=>a.newLine,"getNewLine")})]:[],sourceText:c}},"isolatedDeclarationsTypescriptTransformer");export{y as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var c=Object.defineProperty;var t=(r,e)=>c(r,"name",{value:e,configurable:!0});import{existsSync as l}from"node:fs";import{join as f}from"@visulima/path";
|
|
2
|
+
// -- pack CommonJS Shims --
|
|
3
|
+
import __cjs_url__ from "node:url";
|
|
4
|
+
import __cjs_path__ from "node:path";
|
|
5
|
+
import __cjs_mod__ from "node:module";
|
|
6
|
+
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = __cjs_path__.dirname(__filename);
|
|
8
|
+
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
9
|
+
var a=Object.defineProperty,u=t((r,e)=>a(r,"name",{value:e,configurable:!0}),"o");const x=u((r,e,i=!1)=>{const s=e.replace(/\.[jt]sx?$/,"");for(const o of r){const n=i?f(e,`index${o}`):`${s}${o}`;if(l(n))return n}return null},"resolveFile");export{x as u};
|
|
@@ -11,7 +11,7 @@ interface JsMinifyOptions {
|
|
|
11
11
|
ecma?: TerserEcmaVersion;
|
|
12
12
|
keep_classnames?: boolean;
|
|
13
13
|
keep_fnames?: boolean;
|
|
14
|
-
module?: boolean;
|
|
14
|
+
module?: boolean | "unknown";
|
|
15
15
|
safari10?: boolean;
|
|
16
16
|
toplevel?: boolean;
|
|
17
17
|
sourceMap?: boolean;
|
|
@@ -198,9 +198,37 @@ interface TerserCompressOptions {
|
|
|
198
198
|
}
|
|
199
199
|
interface TerserMangleOptions {
|
|
200
200
|
props?: TerserManglePropertiesOptions;
|
|
201
|
+
/**
|
|
202
|
+
* Pass `true` to mangle names declared in the top level scope.
|
|
203
|
+
*/
|
|
204
|
+
topLevel?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* @deprecated An alias for compatibility with terser.
|
|
207
|
+
*/
|
|
201
208
|
toplevel?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Pass `true` to not mangle class names.
|
|
211
|
+
*/
|
|
212
|
+
keepClassNames?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* @deprecated An alias for compatibility with terser.
|
|
215
|
+
*/
|
|
202
216
|
keep_classnames?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Pass `true` to not mangle function names.
|
|
219
|
+
*/
|
|
220
|
+
keepFnNames?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated An alias for compatibility with terser.
|
|
223
|
+
*/
|
|
203
224
|
keep_fnames?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Pass `true` to not mangle private props.
|
|
227
|
+
*/
|
|
228
|
+
keepPrivateProps?: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* @deprecated An alias for compatibility with terser.
|
|
231
|
+
*/
|
|
204
232
|
keep_private_props?: boolean;
|
|
205
233
|
ie8?: boolean;
|
|
206
234
|
safari10?: boolean;
|
|
@@ -287,7 +315,7 @@ interface Options extends Config {
|
|
|
287
315
|
* and is also available inside configuration functions, plugins,
|
|
288
316
|
* and presets, via the api.env() function.
|
|
289
317
|
*
|
|
290
|
-
* Defaults to `process.env.SWC_ENV ||
|
|
318
|
+
* Defaults to `process.env.SWC_ENV || production || "development"`
|
|
291
319
|
*/
|
|
292
320
|
envName?: string;
|
|
293
321
|
/**
|
|
@@ -480,6 +508,10 @@ interface JscConfig {
|
|
|
480
508
|
* Disable builtin transforms. If enabled, only Wasm plugins are used.
|
|
481
509
|
*/
|
|
482
510
|
disableBuiltinTransformsForInternalTesting?: boolean;
|
|
511
|
+
/**
|
|
512
|
+
* Emit isolated dts files for each module.
|
|
513
|
+
*/
|
|
514
|
+
emitIsolatedDts?: boolean;
|
|
483
515
|
};
|
|
484
516
|
baseUrl?: string;
|
|
485
517
|
paths?: {
|
|
@@ -11,7 +11,7 @@ interface JsMinifyOptions {
|
|
|
11
11
|
ecma?: TerserEcmaVersion;
|
|
12
12
|
keep_classnames?: boolean;
|
|
13
13
|
keep_fnames?: boolean;
|
|
14
|
-
module?: boolean;
|
|
14
|
+
module?: boolean | "unknown";
|
|
15
15
|
safari10?: boolean;
|
|
16
16
|
toplevel?: boolean;
|
|
17
17
|
sourceMap?: boolean;
|
|
@@ -198,9 +198,37 @@ interface TerserCompressOptions {
|
|
|
198
198
|
}
|
|
199
199
|
interface TerserMangleOptions {
|
|
200
200
|
props?: TerserManglePropertiesOptions;
|
|
201
|
+
/**
|
|
202
|
+
* Pass `true` to mangle names declared in the top level scope.
|
|
203
|
+
*/
|
|
204
|
+
topLevel?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* @deprecated An alias for compatibility with terser.
|
|
207
|
+
*/
|
|
201
208
|
toplevel?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Pass `true` to not mangle class names.
|
|
211
|
+
*/
|
|
212
|
+
keepClassNames?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* @deprecated An alias for compatibility with terser.
|
|
215
|
+
*/
|
|
202
216
|
keep_classnames?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Pass `true` to not mangle function names.
|
|
219
|
+
*/
|
|
220
|
+
keepFnNames?: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated An alias for compatibility with terser.
|
|
223
|
+
*/
|
|
203
224
|
keep_fnames?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Pass `true` to not mangle private props.
|
|
227
|
+
*/
|
|
228
|
+
keepPrivateProps?: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* @deprecated An alias for compatibility with terser.
|
|
231
|
+
*/
|
|
204
232
|
keep_private_props?: boolean;
|
|
205
233
|
ie8?: boolean;
|
|
206
234
|
safari10?: boolean;
|
|
@@ -287,7 +315,7 @@ interface Options extends Config {
|
|
|
287
315
|
* and is also available inside configuration functions, plugins,
|
|
288
316
|
* and presets, via the api.env() function.
|
|
289
317
|
*
|
|
290
|
-
* Defaults to `process.env.SWC_ENV ||
|
|
318
|
+
* Defaults to `process.env.SWC_ENV || production || "development"`
|
|
291
319
|
*/
|
|
292
320
|
envName?: string;
|
|
293
321
|
/**
|
|
@@ -480,6 +508,10 @@ interface JscConfig {
|
|
|
480
508
|
* Disable builtin transforms. If enabled, only Wasm plugins are used.
|
|
481
509
|
*/
|
|
482
510
|
disableBuiltinTransformsForInternalTesting?: boolean;
|
|
511
|
+
/**
|
|
512
|
+
* Emit isolated dts files for each module.
|
|
513
|
+
*/
|
|
514
|
+
emitIsolatedDts?: boolean;
|
|
483
515
|
};
|
|
484
516
|
baseUrl?: string;
|
|
485
517
|
paths?: {
|