@visulima/packem-rollup 1.0.0-alpha.22 → 1.0.0-alpha.24
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 +25 -0
- package/LICENSE.md +0 -436
- package/dist/index.d.ts +25 -26
- package/dist/index.js +1 -0
- package/dist/packem_shared/cachingPlugin-CLawAGhx.js +1 -0
- package/dist/packem_shared/createSplitChunks-Ceq_Ca5Y.js +1 -0
- package/dist/packem_shared/{esbuildPlugin-BrFhdKJk.mjs → esbuildPlugin-DpLtQGuZ.js} +1 -1
- package/dist/packem_shared/oxcResolvePlugin-Ccef6pyL.js +1 -0
- package/dist/packem_shared/{patchTypescriptTypes-BEdkvKxL.mjs → patchTypescriptTypes-BX_sJsvd.js} +2 -2
- package/dist/packem_shared/{resolveTsconfigPathsPlugin-pUcTdE77.mjs → resolveTsconfigPathsPlugin-CEasmDpi.js} +1 -1
- package/dist/packem_shared/{resolveTsconfigRootDirectoriesPlugin-_93afm2q.mjs → resolveTsconfigRootDirectoriesPlugin-Cwj3tqCJ.js} +1 -1
- package/dist/packem_shared/{types-Bk7lLMcF.d.ts → types-BiZanzz1.d.ts} +25 -136
- package/dist/plugins/cjs-interop.d.ts +11 -0
- package/dist/{packem_shared/cjsInteropPlugin-D5wyoQ_B.mjs → plugins/cjs-interop.js} +1 -1
- package/dist/plugins/copy.d.ts +18 -0
- package/dist/plugins/copy.js +1 -0
- package/dist/plugins/data-uri.d.ts +12 -0
- package/dist/plugins/data-uri.js +1 -0
- package/dist/plugins/debarrel.d.ts +11 -0
- package/dist/{packem_shared/debarrelPlugin-BTYc859G.mjs → plugins/debarrel.js} +1 -1
- package/dist/plugins/esbuild/index.d.ts +19 -5
- package/dist/plugins/esbuild/index.js +1 -0
- package/dist/plugins/esm-shim-cjs-syntax.d.ts +13 -0
- package/dist/plugins/fix-dts-default-cjs-exports.d.ts +9 -0
- package/dist/plugins/fix-dts-default-cjs-exports.js +1 -0
- package/dist/plugins/isolated-declarations/index.d.ts +13 -0
- package/dist/{packem_shared/isolatedDeclarationsPlugin-B34s_qkE.mjs → plugins/isolated-declarations/index.js} +1 -1
- package/dist/plugins/json.d.ts +7 -0
- package/dist/plugins/json.js +1 -0
- package/dist/plugins/jsx-remove-attributes.d.ts +11 -0
- package/dist/plugins/jsx-remove-attributes.js +1 -0
- package/dist/plugins/license.d.ts +21 -0
- package/dist/plugins/license.js +13 -0
- package/dist/plugins/minify-html-literals/index.d.ts +96 -6
- package/dist/plugins/native-modules-plugin.d.ts +9 -0
- package/dist/plugins/oxc/index.d.ts +20 -6
- package/dist/plugins/oxc/index.js +1 -0
- package/dist/plugins/preserve-directives.d.ts +13 -0
- package/dist/{packem_shared/preserveDirectivesPlugin-B49Cbykd.mjs → plugins/preserve-directives.js} +3 -3
- package/dist/plugins/raw.d.ts +11 -0
- package/dist/plugins/require-cjs-transformer.d.ts +19 -0
- package/dist/plugins/require-cjs-transformer.js +25 -0
- package/dist/plugins/shebang.d.ts +13 -0
- package/dist/plugins/source-maps.d.ts +11 -0
- package/dist/plugins/sucrase/index.d.ts +18 -4
- package/dist/plugins/swc/index.d.ts +19 -5
- package/dist/plugins/swc/index.js +1 -0
- package/dist/plugins/typescript/index.d.ts +20 -6
- package/dist/plugins/typescript/index.js +1 -0
- package/dist/plugins/url.d.ts +17 -0
- package/dist/plugins/url.js +1 -0
- package/package.json +86 -18
- package/dist/index.d.mts +0 -59
- package/dist/index.mjs +0 -1
- package/dist/packem_shared/browserslist-to-esbuild-DY9HwYtp.d.mts +0 -3
- package/dist/packem_shared/cachingPlugin-TWoY5ZxV.mjs +0 -1
- package/dist/packem_shared/copyPlugin--6RITp1-.mjs +0 -1
- package/dist/packem_shared/createSplitChunks-CGDk55G3.mjs +0 -1
- package/dist/packem_shared/dataUriPlugin-BFb7bZZs.mjs +0 -1
- package/dist/packem_shared/fixDtsDefaultCjsExportsPlugin-Dp1UcHVR.mjs +0 -1
- package/dist/packem_shared/index-hWYvkB02.d.mts +0 -346
- package/dist/packem_shared/index-hWYvkB02.d.ts +0 -346
- package/dist/packem_shared/jsonPlugin-BAi3Da-h.mjs +0 -1
- package/dist/packem_shared/jsxRemoveAttributes-B1PLPffj.mjs +0 -1
- package/dist/packem_shared/licensePlugin-C5yzUqe-.mjs +0 -13
- package/dist/packem_shared/oxcResolvePlugin-BJpi-eSG.mjs +0 -1
- package/dist/packem_shared/requireCJSTransformerPlugin-qcY8AH5r.mjs +0 -26
- package/dist/packem_shared/types-CMThMMkh.d.mts +0 -4337
- package/dist/packem_shared/urlPlugin-DJJrDWjj.mjs +0 -1
- package/dist/plugins/esbuild/index.d.mts +0 -28
- package/dist/plugins/esbuild/index.mjs +0 -1
- package/dist/plugins/minify-html-literals/index.d.mts +0 -5
- package/dist/plugins/oxc/index.d.mts +0 -31
- package/dist/plugins/oxc/index.mjs +0 -1
- package/dist/plugins/sucrase/index.d.mts +0 -22
- package/dist/plugins/swc/index.d.mts +0 -29
- package/dist/plugins/swc/index.mjs +0 -1
- package/dist/plugins/typescript/index.d.mts +0 -32
- package/dist/plugins/typescript/index.mjs +0 -1
- /package/dist/packem_shared/{browserslistToEsbuild-C0IWmbNe.mjs → browserslistToEsbuild-C0IWmbNe.js} +0 -0
- /package/dist/packem_shared/{chunkSplitter-DWAy1JkE.mjs → chunkSplitter-DWAy1JkE.js} +0 -0
- /package/dist/packem_shared/{fix-dts-default-cjs-exports-BQc0nwIG.mjs → fix-dts-default-cjs-exports-BQc0nwIG.js} +0 -0
- /package/dist/packem_shared/{fixDynamicImportExtension-BBGNRniz.mjs → fixDynamicImportExtension-BBGNRniz.js} +0 -0
- /package/dist/packem_shared/{getCustomModuleLayer-d8i66lfh.mjs → getCustomModuleLayer-d8i66lfh.js} +0 -0
- /package/dist/packem_shared/{getModuleLayer-rF9RxnJ5.mjs → getModuleLayer-rF9RxnJ5.js} +0 -0
- /package/dist/packem_shared/{index-Dq8IUFTs.mjs → index-Dq8IUFTs.js} +0 -0
- /package/dist/packem_shared/{index-QEzU3Fey.mjs → index-QEzU3Fey.js} +0 -0
- /package/dist/packem_shared/{isolatedDeclarationsOxcTransformer-WbfE6cGu.mjs → isolatedDeclarationsOxcTransformer-WbfE6cGu.js} +0 -0
- /package/dist/packem_shared/{isolatedDeclarationsSwcTransformer-Ch2AgtWC.mjs → isolatedDeclarationsSwcTransformer-Ch2AgtWC.js} +0 -0
- /package/dist/packem_shared/{isolatedDeclarationsTypescriptTransformer-DkuEkofo.mjs → isolatedDeclarationsTypescriptTransformer-DkuEkofo.js} +0 -0
- /package/dist/packem_shared/{metafilePlugin-CVcqFpPJ.mjs → metafilePlugin-CVcqFpPJ.js} +0 -0
- /package/dist/packem_shared/{oxcTransformPlugin-DfVQouIB.mjs → oxcTransformPlugin-DfVQouIB.js} +0 -0
- /package/dist/packem_shared/{resolveFileUrlPlugin-BkpjVHeK.mjs → resolveFileUrlPlugin-BkpjVHeK.js} +0 -0
- /package/dist/packem_shared/{resolveTypescriptMjsCtsPlugin-DcZrZTmM.mjs → resolveTypescriptMjsCtsPlugin-DcZrZTmM.js} +0 -0
- /package/dist/packem_shared/{swcPlugin-Boip4lWG.mjs → swcPlugin-Boip4lWG.js} +0 -0
- /package/dist/{packem_shared/esmShimCjsSyntaxPlugin-DjKqX4DE.mjs → plugins/esm-shim-cjs-syntax.js} +0 -0
- /package/dist/plugins/minify-html-literals/{index.mjs → index.js} +0 -0
- /package/dist/{packem_shared/nativeModulesPlugin-D6lO-8g6.mjs → plugins/native-modules-plugin.js} +0 -0
- /package/dist/{packem_shared/rawPlugin-DgRj14Xy.mjs → plugins/raw.js} +0 -0
- /package/dist/{packem_shared/makeExecutable-6aOVHoJR.mjs → plugins/shebang.js} +0 -0
- /package/dist/{packem_shared/sourcemapsPlugin-B4W3J79w.mjs → plugins/source-maps.js} +0 -0
- /package/dist/plugins/sucrase/{index.mjs → index.js} +0 -0
package/dist/index.d.mts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Plugin, RenderedChunk, GetManualChunk, CustomPluginOptions } from 'rollup';
|
|
2
|
-
export { C as CJSInteropOptions, a as CopyPluginOptions, D as DataUriPluginOptions, e as DebarrelPluginOptions, E as EsmShimCjsSyntaxOptions, I as IsolatedDeclarationsOptions, t as IsolatedDeclarationsResult, v as IsolatedDeclarationsTransformer, J as JSXRemoveAttributesPlugin, L as LicenseOptions, N as NativeModulesOptions, P as PackemRollupOptions, R as RawLoaderOptions, O as RequireCJSPluginOptions, T as RequireCJSPluginTransformFunction, w as RollupPlugins, S as ShebangOptions, p as SourcemapsPluginOptions, x as TransformerFn, y as TransformerName, U as UrlOptions, c as cjsInteropPlugin, b as copyPlugin, d as dataUriPlugin, f as debarrelPlugin, g as esmShimCjsSyntaxPlugin, k as getShebang, i as isolatedDeclarationsPlugin, j as jsxRemoveAttributes, l as licensePlugin, m as makeExecutable, n as nativeModulesPlugin, r as rawPlugin, o as removeShebangPlugin, h as requireCJSTransformerPlugin, s as shebangPlugin, q as sourcemapsPlugin, u as urlPlugin } from './packem_shared/types-CMThMMkh.mjs';
|
|
3
|
-
export { b as browserslistToEsbuild } from './packem_shared/browserslist-to-esbuild-DY9HwYtp.mjs';
|
|
4
|
-
import { RollupJsonOptions } from '@rollup/plugin-json';
|
|
5
|
-
import { P as PailServerType } from './packem_shared/index-hWYvkB02.mjs';
|
|
6
|
-
export { M as MinifyHTMLLiteralsOptions, m as minifyHTMLLiteralsPlugin } from './packem_shared/index-hWYvkB02.mjs';
|
|
7
|
-
import { FileCache } from '@visulima/packem-share/utils';
|
|
8
|
-
import { FilterPattern } from '@rollup/pluginutils';
|
|
9
|
-
import { BuildContextBuildAssetAndChunk, BuildContextBuildEntry } from '@visulima/packem-share/types';
|
|
10
|
-
export { Alias, ResolverObject as AliasResolverObject, ResolvedAlias, RollupAliasOptions, default as alias } from '@rollup/plugin-alias';
|
|
11
|
-
export { RollupCommonJSOptions, default as commonjs } from '@rollup/plugin-commonjs';
|
|
12
|
-
export { RollupDynamicImportVariablesOptions, default as dynamicImportVars } from '@rollup/plugin-dynamic-import-vars';
|
|
13
|
-
export { RollupInjectOptions, default as inject } from '@rollup/plugin-inject';
|
|
14
|
-
export { RollupNodeResolveOptions, default as nodeResolve } from '@rollup/plugin-node-resolve';
|
|
15
|
-
export { RollupReplaceOptions, default as replace } from '@rollup/plugin-replace';
|
|
16
|
-
export { RollupWasmOptions, default as wasm } from '@rollup/plugin-wasm';
|
|
17
|
-
export { NodePolyfillsOptions as RollupNodePolyfillsOptions, default as polyfillNode } from 'rollup-plugin-polyfill-node';
|
|
18
|
-
export { PluginPure, PureAnnotationsOptions as RollupPureAnnotationsOptions } from 'rollup-plugin-pure';
|
|
19
|
-
export { PluginVisualizerOptions as RollupPluginVisualizerOptions, default as visualizer } from 'rollup-plugin-visualizer';
|
|
20
|
-
import 'rollup-plugin-dts';
|
|
21
|
-
import 'esbuild';
|
|
22
|
-
import '@visulima/package';
|
|
23
|
-
import 'oxc-resolver';
|
|
24
|
-
import 'oxc-transform';
|
|
25
|
-
import 'sucrase';
|
|
26
|
-
import 'magic-string';
|
|
27
|
-
import 'html-minifier-next';
|
|
28
|
-
|
|
29
|
-
declare const chunkSplitter: () => Plugin;
|
|
30
|
-
|
|
31
|
-
type FixDtsDefaultCjsExportsPluginOptions = {
|
|
32
|
-
matcher?: (info: RenderedChunk) => boolean;
|
|
33
|
-
};
|
|
34
|
-
declare const fixDtsDefaultCjsExportsPlugin: (options?: FixDtsDefaultCjsExportsPluginOptions) => Plugin;
|
|
35
|
-
|
|
36
|
-
declare const fixDynamicImportExtension: () => Plugin;
|
|
37
|
-
|
|
38
|
-
declare const JSONPlugin: (options: RollupJsonOptions) => Plugin;
|
|
39
|
-
|
|
40
|
-
declare const metafilePlugin: () => Plugin;
|
|
41
|
-
|
|
42
|
-
declare const cachingPlugin: (plugin: Plugin, cache: FileCache, subDirectory?: string) => Plugin;
|
|
43
|
-
|
|
44
|
-
declare const preserveDirectives: ({ directiveRegex, exclude, include, logger, }: {
|
|
45
|
-
directiveRegex: RegExp;
|
|
46
|
-
exclude?: FilterPattern;
|
|
47
|
-
include?: FilterPattern;
|
|
48
|
-
logger: PailServerType;
|
|
49
|
-
}) => Plugin;
|
|
50
|
-
|
|
51
|
-
declare const resolveFileUrl: () => Plugin;
|
|
52
|
-
|
|
53
|
-
declare const createSplitChunks: (dependencyGraphMap: Map<string, Set<[string, string]>>, entryFiles: (BuildContextBuildAssetAndChunk | BuildContextBuildEntry)[]) => GetManualChunk;
|
|
54
|
-
|
|
55
|
-
declare const getCustomModuleLayer: (moduleId: string) => string | undefined;
|
|
56
|
-
|
|
57
|
-
declare const getModuleLayer: (moduleMeta: CustomPluginOptions) => any;
|
|
58
|
-
|
|
59
|
-
export { cachingPlugin, chunkSplitter, createSplitChunks, fixDtsDefaultCjsExportsPlugin, fixDynamicImportExtension, getCustomModuleLayer, getModuleLayer, JSONPlugin as jsonPlugin, metafilePlugin, preserveDirectives as preserveDirectivesPlugin, resolveFileUrl as resolveFileUrlPlugin };
|
package/dist/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{default as o}from"./packem_shared/chunkSplitter-DWAy1JkE.mjs";import{cjsInteropPlugin as a}from"./packem_shared/cjsInteropPlugin-D5wyoQ_B.mjs";import{copyPlugin as f}from"./packem_shared/copyPlugin--6RITp1-.mjs";import{dataUriPlugin as s}from"./packem_shared/dataUriPlugin-BFb7bZZs.mjs";import{debarrelPlugin as i}from"./packem_shared/debarrelPlugin-BTYc859G.mjs";import{default as n}from"./packem_shared/browserslistToEsbuild-C0IWmbNe.mjs";import{esmShimCjsSyntaxPlugin as d}from"./packem_shared/esmShimCjsSyntaxPlugin-DjKqX4DE.mjs";import{fixDtsDefaultCjsExportsPlugin as P}from"./packem_shared/fixDtsDefaultCjsExportsPlugin-Dp1UcHVR.mjs";import{default as b}from"./packem_shared/fixDynamicImportExtension-BBGNRniz.mjs";import{isolatedDeclarationsPlugin as y}from"./packem_shared/isolatedDeclarationsPlugin-B34s_qkE.mjs";import{default as j}from"./packem_shared/jsonPlugin-BAi3Da-h.mjs";import{jsxRemoveAttributes as C}from"./packem_shared/jsxRemoveAttributes-B1PLPffj.mjs";import{license as E}from"./packem_shared/licensePlugin-C5yzUqe-.mjs";import{default as M}from"./packem_shared/metafilePlugin-CVcqFpPJ.mjs";import{minifyHTMLLiteralsPlugin as w}from"./plugins/minify-html-literals/index.mjs";import{nativeModulesPlugin as T}from"./packem_shared/nativeModulesPlugin-D6lO-8g6.mjs";import{default as U}from"./packem_shared/cachingPlugin-TWoY5ZxV.mjs";import{default as z}from"./packem_shared/preserveDirectivesPlugin-B49Cbykd.mjs";import{rawPlugin as F}from"./packem_shared/rawPlugin-DgRj14Xy.mjs";import{requireCJSTransformerPlugin as J}from"./packem_shared/requireCJSTransformerPlugin-qcY8AH5r.mjs";import{default as V}from"./packem_shared/resolveFileUrlPlugin-BkpjVHeK.mjs";import{getShebang as G,makeExecutable as K,removeShebangPlugin as O,shebangPlugin as Q}from"./packem_shared/makeExecutable-6aOVHoJR.mjs";import{sourcemapsPlugin as X}from"./packem_shared/sourcemapsPlugin-B4W3J79w.mjs";import{urlPlugin as Z}from"./packem_shared/urlPlugin-DJJrDWjj.mjs";import{default as $}from"./packem_shared/createSplitChunks-CGDk55G3.mjs";import{default as re}from"./packem_shared/getCustomModuleLayer-d8i66lfh.mjs";import{default as te}from"./packem_shared/getModuleLayer-rF9RxnJ5.mjs";import{default as le}from"@rollup/plugin-alias";import{default as ue}from"@rollup/plugin-commonjs";import{default as me}from"@rollup/plugin-dynamic-import-vars";import{default as pe}from"@rollup/plugin-inject";import{default as xe}from"@rollup/plugin-node-resolve";import{default as ge}from"@rollup/plugin-replace";import{default as ce}from"@rollup/plugin-wasm";import{default as ve}from"rollup-plugin-polyfill-node";import{PluginPure as he}from"rollup-plugin-pure";import{default as Se}from"rollup-plugin-visualizer";export{he as PluginPure,le as alias,n as browserslistToEsbuild,U as cachingPlugin,o as chunkSplitter,a as cjsInteropPlugin,ue as commonjs,f as copyPlugin,$ as createSplitChunks,s as dataUriPlugin,i as debarrelPlugin,me as dynamicImportVars,d as esmShimCjsSyntaxPlugin,P as fixDtsDefaultCjsExportsPlugin,b as fixDynamicImportExtension,re as getCustomModuleLayer,te as getModuleLayer,G as getShebang,pe as inject,y as isolatedDeclarationsPlugin,j as jsonPlugin,C as jsxRemoveAttributes,E as licensePlugin,K as makeExecutable,M as metafilePlugin,w as minifyHTMLLiteralsPlugin,T as nativeModulesPlugin,xe as nodeResolve,ve as polyfillNode,z as preserveDirectivesPlugin,F as rawPlugin,O as removeShebangPlugin,ge as replace,J as requireCJSTransformerPlugin,V as resolveFileUrlPlugin,Q as shebangPlugin,X as sourcemapsPlugin,Z as urlPlugin,Se as visualizer,ce as wasm};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var w=Object.defineProperty;var m=(a,e)=>w(a,"name",{value:e,configurable:!0});import{isAccessibleSync as b,readFileSync as g}from"@visulima/fs";import{join as l}from"@visulima/path";import{getHash as o}from"@visulima/packem-share/utils";var _=Object.defineProperty,h=m((a,e)=>_(a,"name",{value:e,configurable:!0}),"f");const d=h(a=>a.handler||a,"getHandler"),f=h(a=>a&&typeof a=="object"&&a.__packem_cache_wrapped===!0?a.data:a,"unwrapCachedValue"),E=h((a,e,u="")=>({...a,async buildEnd(r){a.buildEnd&&await d(a.buildEnd).call(this,r)},async buildStart(r){a.buildStart&&await d(a.buildStart).call(this,r)},async load(r){if(!a.load)return;const t=l(u,a.name),n=r.includes("?")?r.split("?")[0]:r;let c="";try{if(n&&b(n)){const y=g(n);c=o(y)}}catch{}const s=l("load",o(r),c);if(e.has(s,t))return f(await e.get(s,t));const i=await d(a.load).call(this,r),p=i&&typeof i=="object"&&"code"in i?i:{__packem_cache_wrapped:!0,data:i};return e.set(s,p,t),i},name:`cached(${a.name})`,async resolveId(r,t,n){if(!a.resolveId)return;const c=l(u,a.name),s=l("resolveId",o(r),t?o(t):"",o(JSON.stringify(n)));if(e.has(s,c))return f(await e.get(s,c));const i=await d(a.resolveId).call(this,r,t,n);return e.set(s,i,c),i},async transform(r,t){if(!a.transform)return;const n=l(u,a.name),c=l("transform",o(t),o(r));if(e.has(c,n))return f(await e.get(c,n));const s=await d(a.transform).call(this,r,t);return e.set(c,s,n),s}}),"cachingPlugin");export{E as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var g=Object.defineProperty;var l=(c,i)=>g(c,"name",{value:i,configurable:!0});import{stat as x}from"node:fs/promises";import{readFile as h}from"@visulima/fs";import{arrayify as u}from"@visulima/packem-share/utils";import{normalize as b,join as y,relative as w,dirname as F,basename as P}from"@visulima/path";import $ from"glob-parent";import{glob as v}from"tinyglobby";var A=Object.defineProperty,j=l((c,i)=>A(c,"name",{value:i,configurable:!0}),"f");const C=j((c,i)=>{const n=new Map,p={copyOnce:!0,exactFileNames:!0,flatten:!1,...c};let{targets:o}=p;return Array.isArray(o)?o=o.map(s=>{if(typeof s=="string")return{src:s};if(typeof s=="object"&&"src"in s)return s}).filter(Boolean):typeof o=="string"&&(o=[{src:o}]),{async buildStart(){const s=await Promise.all(o.flatMap(e=>Array.isArray(e.src)?e.src.map(r=>({...e,src:r})):e).map(async e=>await v(u(e.src),{ignore:u(e.exclude).filter(Boolean)}).then(r=>({dest:e.dest??"",parent:$(e.src),src:r}))));for(const e of s)for(const r of e.src){let a;n.has(r)?a=n.get(r):(a={copied:[],dest:[],timestamp:0},n.set(r,a));const t=p.flatten?b(e.dest):y(e.dest,w(e.parent,F(r)));a.dest.includes(t)||a.dest.push(t),this.addWatchFile(r)}i.info({message:"Copying files...",prefix:"plugin:copy"}),await Promise.all([...n].map(async([e,r])=>{let a;try{const t=await x(e);if(!t.isFile())return;const m=t.mtime.getTime();m>r.timestamp&&(r.timestamp=m,r.copied=[]),a=await h(e,{buffer:!0})}catch(t){i.error({context:[t],message:`error reading file ${e}`,prefix:"plugin:copy"});return}for(const t of r.dest){if(p.copyOnce&&r.copied.includes(t))continue;const m=P(e),f=y(t,m);try{this.emitFile({[p.exactFileNames?"fileName":"name"]:f,source:a,type:"asset"}),i.debug({message:`copied ${e} → ${f}`,prefix:"plugin:copy"}),r.copied.push(t)}catch(d){i.error({context:[d],message:`error copying file ${e} → ${f}`,prefix:"plugin:copy"})}}}))},name:"packem:copy"}},"copyPlugin");export{C as copyPlugin};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var I=Object.defineProperty;var p=(t,n)=>I(t,"name",{value:n,configurable:!0});import{memoize as y}from"@visulima/packem-share/utils";import{basename as b,extname as w}from"@visulima/path";import S from"./getCustomModuleLayer-d8i66lfh.mjs";import l from"./getModuleLayer-rF9RxnJ5.mjs";var $=Object.defineProperty,h=p((t,n)=>$(t,"name",{value:n,configurable:!0}),"d");const M=y(t=>{let n=0;for(let r=0;r<t.length;r+=1)n=(n<<5)-n+t.codePointAt(r);return(n>>>0).toString(36).slice(0,3)}),j=h((t,n)=>{const r=new Map;return h(function(e,u){if(/[\\/]node_modules[\\/]@swc[\\/]helper/.test(e))return"cc";const c=u.getModuleInfo(e);if(!c)return;const{isEntry:m}=c,d=c.meta;let s=l(d);if(s&&(s=M(s)),!m){const f=r.get(e);if(f)return f;const o=S(e);if(o)return r.set(e,o),o}if(m){const f=u.getModuleIds();for(const o of f)u.getModuleInfo(o)&&l(d)===s&&(t.has(o)||t.set(o,new Set),t.get(o).add([e,s]))}if(s&&!m&&t.has(e)){const f=[...t.get(e)];if(f.some(([i])=>{if(n.some(a=>a.path===i)){const a=u.getModuleInfo(i);return l(a?a.meta:{})===s}return!1}))return;if(f.every(([,i])=>i===s))return r.has(e)?r.get(e):void 0;const o=b(e,w(e)),v=M(s),g=`${o}-${v}`;return r.set(e,g),g}},"splitChunks")},"createSplitChunks");export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var p=Object.defineProperty;var c=(a,e)=>p(a,"name",{value:e,configurable:!0});import{createFilter as g}from"@rollup/pluginutils";import{readFile as u}from"@visulima/fs";import{svgToCssDataUri as h,svgToTinyDataUri as b}from"@visulima/packem-share";import{R as v}from"./index-QEzU3Fey.mjs";var x=Object.defineProperty,$=c((a,e)=>x(a,"name",{value:e,configurable:!0}),"l");const F=$((a={})=>{const e=g(a.include??[/\?data-uri/],a.exclude);return{async load(s){if(!e(s)||!s.includes("?data-uri"))return;const i=new URL(s,"file://"),t=i.pathname,f=i.searchParams.get("encoding")||"tiny",l=i.searchParams.has("srcset")||a.srcset;this.addWatchFile(t);const r=v.getType(t)||"application/octet-stream";if(r==="image/svg+xml"){const n=await u(t,{buffer:!1}),o=f==="css"?h(n):b(n);return`export default "${l?o.replaceAll(" ","%20"):o}"`}const d=await u(t,{buffer:!0}),m=Buffer.from(d).toString("base64");return`export default "${`${r.startsWith("text/")?`data:${r};charset=utf-8;base64,`:`data:${r};base64,`}${m}`}"`},name:"packem:data-uri"}},"dataUriPlugin");export{F as dataUriPlugin,F as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var n=(e,r)=>i(e,"name",{value:r,configurable:!0});import{_ as o}from"./fix-dts-default-cjs-exports-BQc0nwIG.mjs";var p=Object.defineProperty,a=n((e,r)=>p(e,"name",{value:r,configurable:!0}),"n");const l=a((e={})=>{const{matcher:r=a(t=>(t.type==="chunk"||t.type==="asset")&&t.exports?.length>0&&/\.d\.c?ts$/.test(t.fileName)&&t.isEntry,"matcher")}=e;return{name:"packem:fix-dts-default-cjs-exports-plugin",renderChunk(t,s){return r(s)?o(t,{fileName:s.fileName,imports:s.imports},{warn:this.warn}):void 0}}},"fixDtsDefaultCjsExportsPlugin");export{l as fixDtsDefaultCjsExportsPlugin};
|
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { FilterPattern } from '@rollup/pluginutils';
|
|
2
|
-
import { Plugin } from 'rollup';
|
|
3
|
-
import { SourceMapOptions } from 'magic-string';
|
|
4
|
-
import { MinifierOptions } from 'html-minifier-next';
|
|
5
|
-
|
|
6
|
-
type AnsiColors = "bgBlack" | "bgBlackBright" | "bgBlue" | "bgBlueBright" | "bgCyan" | "bgCyanBright" | "bgGray" | "bgGreen" | "bgGreenBright" | "bgGrey" | "bgMagenta" | "bgMagentaBright" | "bgRed" | "bgRedBright" | "bgWhite" | "bgWhiteBright" | "bgYellow" | "bgYellowBright" | "black" | "blackBright" | "blue" | "blueBright" | "cyan" | "cyanBright" | "gray" | "green" | "greenBright" | "grey" | "magenta" | "magentaBright" | "red" | "redBright" | "white" | "whiteBright" | "yellow" | "yellowBright";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
|
|
10
|
-
|
|
11
|
-
@category Type
|
|
12
|
-
*/
|
|
13
|
-
type Primitive =
|
|
14
|
-
| null
|
|
15
|
-
| undefined
|
|
16
|
-
| string
|
|
17
|
-
| number
|
|
18
|
-
| boolean
|
|
19
|
-
| symbol
|
|
20
|
-
| bigint;
|
|
21
|
-
|
|
22
|
-
declare global {
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
24
|
-
interface SymbolConstructor {
|
|
25
|
-
readonly observable: symbol;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
Allows creating a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union.
|
|
31
|
-
|
|
32
|
-
Currently, when a union type of a primitive type is combined with literal types, TypeScript loses all information about the combined literals. Thus, when such type is used in an IDE with autocompletion, no suggestions are made for the declared literals.
|
|
33
|
-
|
|
34
|
-
This type is a workaround for [Microsoft/TypeScript#29729](https://github.com/Microsoft/TypeScript/issues/29729). It will be removed as soon as it's not needed anymore.
|
|
35
|
-
|
|
36
|
-
@example
|
|
37
|
-
```
|
|
38
|
-
import type {LiteralUnion} from 'type-fest';
|
|
39
|
-
|
|
40
|
-
// Before
|
|
41
|
-
|
|
42
|
-
type Pet = 'dog' | 'cat' | string;
|
|
43
|
-
|
|
44
|
-
const pet: Pet = '';
|
|
45
|
-
// Start typing in your TypeScript-enabled IDE.
|
|
46
|
-
// You **will not** get auto-completion for `dog` and `cat` literals.
|
|
47
|
-
|
|
48
|
-
// After
|
|
49
|
-
|
|
50
|
-
type Pet2 = LiteralUnion<'dog' | 'cat', string>;
|
|
51
|
-
|
|
52
|
-
const pet: Pet2 = '';
|
|
53
|
-
// You **will** get auto-completion for `dog` and `cat` literals.
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
@category Type
|
|
57
|
-
*/
|
|
58
|
-
type LiteralUnion<
|
|
59
|
-
LiteralType,
|
|
60
|
-
BaseType extends Primitive,
|
|
61
|
-
> = LiteralType | (BaseType & Record<never, never>);
|
|
62
|
-
|
|
63
|
-
declare class InteractiveStreamHook {
|
|
64
|
-
#private;
|
|
65
|
-
static readonly DRAIN = true;
|
|
66
|
-
constructor(stream: NodeJS.WriteStream);
|
|
67
|
-
active(): void;
|
|
68
|
-
erase(count: number): void;
|
|
69
|
-
inactive(separateHistory?: boolean): void;
|
|
70
|
-
renew(): void;
|
|
71
|
-
write(message: string): void;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
type StreamType = "stderr" | "stdout";
|
|
75
|
-
declare class InteractiveManager {
|
|
76
|
-
#private;
|
|
77
|
-
constructor(stdout: InteractiveStreamHook, stderr: InteractiveStreamHook);
|
|
78
|
-
get lastLength(): number;
|
|
79
|
-
get outside(): number;
|
|
80
|
-
get isHooked(): boolean;
|
|
81
|
-
get isSuspended(): boolean;
|
|
82
|
-
erase(stream: StreamType, count?: number): void;
|
|
83
|
-
hook(): boolean;
|
|
84
|
-
resume(stream: StreamType, eraseRowCount?: number): void;
|
|
85
|
-
suspend(stream: StreamType, erase?: boolean): void;
|
|
86
|
-
unhook(separateHistory?: boolean): boolean;
|
|
87
|
-
update(stream: StreamType, rows: string[], from?: number): void;
|
|
88
|
-
private _clear;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
declare global {
|
|
92
|
-
namespace VisulimaPail {
|
|
93
|
-
interface CustomMeta<L> {
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
interface Meta<L> extends VisulimaPail.CustomMeta<L> {
|
|
98
|
-
badge: string | undefined;
|
|
99
|
-
context: any[] | undefined;
|
|
100
|
-
date: Date | string;
|
|
101
|
-
error: Error | undefined;
|
|
102
|
-
groups: string[];
|
|
103
|
-
label: string | undefined;
|
|
104
|
-
message: Primitive | ReadonlyArray<unknown> | Record<PropertyKey, unknown>;
|
|
105
|
-
prefix: string | undefined;
|
|
106
|
-
repeated?: number | undefined;
|
|
107
|
-
scope: string[] | undefined;
|
|
108
|
-
suffix: string | undefined;
|
|
109
|
-
traceError: Error | undefined;
|
|
110
|
-
type: {
|
|
111
|
-
level: ExtendedRfc5424LogLevels | L;
|
|
112
|
-
name: string;
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
type ExtendedRfc5424LogLevels = "alert" | "critical" | "debug" | "emergency" | "error" | "informational" | "notice" | "trace" | "warning";
|
|
116
|
-
type DefaultLogTypes = "alert" | "await" | "complete" | "critical" | "debug" | "emergency" | "error" | "info" | "log" | "notice" | "pending" | "start" | "stop" | "success" | "trace" | "wait" | "warn" | "watch";
|
|
117
|
-
interface LoggerFunction {
|
|
118
|
-
(message: Message): void;
|
|
119
|
-
(...message: any[]): void;
|
|
120
|
-
}
|
|
121
|
-
interface LoggerConfiguration<L extends string> {
|
|
122
|
-
badge?: string;
|
|
123
|
-
color?: AnsiColors | undefined;
|
|
124
|
-
label: string;
|
|
125
|
-
logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>;
|
|
126
|
-
}
|
|
127
|
-
type LoggerTypesConfig<T extends string, L extends string> = Record<T, Partial<LoggerConfiguration<L>>>;
|
|
128
|
-
type ReadonlyMeta<L extends string> = Readonly<Meta<L>>;
|
|
129
|
-
interface Reporter<L extends string> {
|
|
130
|
-
log: (meta: ReadonlyMeta<L>) => void;
|
|
131
|
-
}
|
|
132
|
-
interface Processor<L extends string> {
|
|
133
|
-
process: (meta: Meta<L>) => Meta<L>;
|
|
134
|
-
}
|
|
135
|
-
interface ConstructorOptions<T extends string, L extends string> {
|
|
136
|
-
disabled?: boolean;
|
|
137
|
-
logLevel?: LiteralUnion<ExtendedRfc5424LogLevels, L>;
|
|
138
|
-
logLevels?: Partial<Record<ExtendedRfc5424LogLevels, number>> & Record<L, number>;
|
|
139
|
-
messages?: {
|
|
140
|
-
timerEnd?: string;
|
|
141
|
-
timerStart?: string;
|
|
142
|
-
};
|
|
143
|
-
processors?: Processor<L>[];
|
|
144
|
-
rawReporter?: Reporter<L>;
|
|
145
|
-
reporters?: Reporter<L>[];
|
|
146
|
-
scope?: string[] | string;
|
|
147
|
-
throttle?: number;
|
|
148
|
-
throttleMin?: number;
|
|
149
|
-
types?: LoggerTypesConfig<T, L> & Partial<LoggerTypesConfig<DefaultLogTypes, L>>;
|
|
150
|
-
}
|
|
151
|
-
interface ServerConstructorOptions<T extends string, L extends string> extends ConstructorOptions<T, L> {
|
|
152
|
-
interactive?: boolean;
|
|
153
|
-
stderr: NodeJS.WriteStream;
|
|
154
|
-
stdout: NodeJS.WriteStream;
|
|
155
|
-
}
|
|
156
|
-
type Message = {
|
|
157
|
-
context?: any[] | undefined;
|
|
158
|
-
message: any;
|
|
159
|
-
prefix?: string;
|
|
160
|
-
suffix?: string;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
type Replacer = (number | string)[] | null | undefined | ((key: string, value: unknown) => string | number | boolean | null | object)
|
|
164
|
-
|
|
165
|
-
interface StringifyOptions {
|
|
166
|
-
bigint?: boolean,
|
|
167
|
-
circularValue?: string | null | TypeErrorConstructor | ErrorConstructor,
|
|
168
|
-
deterministic?: boolean | ((a: string, b: string) => number),
|
|
169
|
-
maximumBreadth?: number,
|
|
170
|
-
maximumDepth?: number,
|
|
171
|
-
strict?: boolean,
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
declare function stringify(value: undefined | symbol | ((...args: unknown[]) => unknown), replacer?: Replacer, space?: string | number): undefined
|
|
175
|
-
declare function stringify(value: string | number | unknown[] | null | boolean | object, replacer?: Replacer, space?: string | number): string
|
|
176
|
-
declare function stringify(value: unknown, replacer?: ((key: string, value: unknown) => unknown) | (number | string)[] | null | undefined, space?: string | number): string | undefined
|
|
177
|
-
|
|
178
|
-
declare namespace stringify {
|
|
179
|
-
export function configure(options: StringifyOptions): typeof stringify
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
declare class PailBrowserImpl<T extends string = string, L extends string = string> {
|
|
183
|
-
protected timersMap: Map<string, number>;
|
|
184
|
-
protected countMap: Map<string, number>;
|
|
185
|
-
protected seqTimers: Set<string>;
|
|
186
|
-
protected readonly lastLog: {
|
|
187
|
-
count?: number;
|
|
188
|
-
object?: Meta<L>;
|
|
189
|
-
serialized?: string;
|
|
190
|
-
time?: Date;
|
|
191
|
-
timeout?: ReturnType<typeof setTimeout>;
|
|
192
|
-
};
|
|
193
|
-
protected readonly logLevels: Record<string, number>;
|
|
194
|
-
protected disabled: boolean;
|
|
195
|
-
protected scopeName: string[];
|
|
196
|
-
protected readonly types: LoggerTypesConfig<LiteralUnion<DefaultLogTypes, T>, L>;
|
|
197
|
-
protected readonly longestLabel: string;
|
|
198
|
-
protected readonly processors: Set<Processor<L>>;
|
|
199
|
-
protected readonly generalLogLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>;
|
|
200
|
-
protected reporters: Set<Reporter<L>>;
|
|
201
|
-
protected readonly throttle: number;
|
|
202
|
-
protected readonly throttleMin: number;
|
|
203
|
-
protected readonly stringify: typeof stringify;
|
|
204
|
-
protected groups: string[];
|
|
205
|
-
protected readonly startTimerMessage: string;
|
|
206
|
-
protected readonly endTimerMessage: string;
|
|
207
|
-
protected rawReporter: Reporter<L>;
|
|
208
|
-
constructor(options: ConstructorOptions<T, L>);
|
|
209
|
-
wrapConsole(): void;
|
|
210
|
-
restoreConsole(): void;
|
|
211
|
-
wrapException(): void;
|
|
212
|
-
disable(): void;
|
|
213
|
-
enable(): void;
|
|
214
|
-
isEnabled(): boolean;
|
|
215
|
-
scope<N extends string = T>(...name: string[]): PailBrowserType<N, L>;
|
|
216
|
-
unscope(): void;
|
|
217
|
-
time(label?: string): void;
|
|
218
|
-
timeLog(label?: string, ...data: unknown[]): void;
|
|
219
|
-
timeEnd(label?: string): void;
|
|
220
|
-
group(label?: string): void;
|
|
221
|
-
groupEnd(): void;
|
|
222
|
-
count(label?: string): void;
|
|
223
|
-
countReset(label?: string): void;
|
|
224
|
-
clear(): void;
|
|
225
|
-
raw(message: string, ...arguments_: unknown[]): void;
|
|
226
|
-
protected extendReporter(reporter: Reporter<L>): Reporter<L>;
|
|
227
|
-
protected registerReporters(reporters: Reporter<L>[]): void;
|
|
228
|
-
private _report;
|
|
229
|
-
private registerProcessors;
|
|
230
|
-
private _normalizeLogLevel;
|
|
231
|
-
private _buildMeta;
|
|
232
|
-
private _logger;
|
|
233
|
-
}
|
|
234
|
-
type PailBrowserType<T extends string = string, L extends string = string> = PailBrowserImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction> & (new <TC extends string = string, LC extends string = string>(options?: ConstructorOptions<TC, LC>) => PailBrowserType<TC, LC>);
|
|
235
|
-
|
|
236
|
-
declare class PailServerImpl<T extends string = string, L extends string = string> extends PailBrowserImpl<T, L> {
|
|
237
|
-
readonly options: ServerConstructorOptions<T, L>;
|
|
238
|
-
protected readonly stdout: NodeJS.WriteStream;
|
|
239
|
-
protected readonly stderr: NodeJS.WriteStream;
|
|
240
|
-
protected interactiveManager: InteractiveManager | undefined;
|
|
241
|
-
protected readonly interactive: boolean;
|
|
242
|
-
constructor(options: ServerConstructorOptions<T, L>);
|
|
243
|
-
scope<N extends string = T>(...name: string[]): PailServerType<N, L>;
|
|
244
|
-
getInteractiveManager(): InteractiveManager | undefined;
|
|
245
|
-
wrapStd(): void;
|
|
246
|
-
restoreStd(): void;
|
|
247
|
-
wrapAll(): void;
|
|
248
|
-
restoreAll(): void;
|
|
249
|
-
clear(): void;
|
|
250
|
-
protected extendReporter(reporter: Reporter<L>): Reporter<L>;
|
|
251
|
-
private _wrapStream;
|
|
252
|
-
private _restoreStream;
|
|
253
|
-
}
|
|
254
|
-
type PailServerType<T extends string = string, L extends string = string> = PailServerImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction> & (new <TC extends string = string, LC extends string = string>(options?: ServerConstructorOptions<TC, LC>) => PailServerType<TC, LC>);
|
|
255
|
-
|
|
256
|
-
interface Template {
|
|
257
|
-
parts: TemplatePart[];
|
|
258
|
-
tag?: string;
|
|
259
|
-
}
|
|
260
|
-
interface TemplatePart {
|
|
261
|
-
end: number;
|
|
262
|
-
start: number;
|
|
263
|
-
text: string;
|
|
264
|
-
}
|
|
265
|
-
interface Strategy$1<N = unknown> {
|
|
266
|
-
getRootNode: (source: string, fileName?: string) => N;
|
|
267
|
-
getTaggedTemplateTemplate: (node: N) => unknown;
|
|
268
|
-
getTagText: (node: N) => string;
|
|
269
|
-
getTemplateParts: (node: N) => TemplatePart[];
|
|
270
|
-
isTaggedTemplate: (node: N) => boolean;
|
|
271
|
-
isTemplate: (node: N) => boolean;
|
|
272
|
-
walkNodes: (parent: N, visit: (child: N) => void) => void;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
interface ParseLiteralsOptions {
|
|
276
|
-
fileName?: string;
|
|
277
|
-
strategy?: Partial<Strategy$1<unknown>>;
|
|
278
|
-
}
|
|
279
|
-
declare const parseLiterals: (source: string, options?: ParseLiteralsOptions) => Template[];
|
|
280
|
-
|
|
281
|
-
interface Strategy<O = unknown, C = unknown> {
|
|
282
|
-
combineHTMLStrings: (parts: TemplatePart[], placeholder: string) => string;
|
|
283
|
-
getPlaceholder: (parts: TemplatePart[]) => string;
|
|
284
|
-
minifyCSS?: (css: string, options?: C) => string;
|
|
285
|
-
minifyHTML: (html: string, options?: O) => string | Promise<string>;
|
|
286
|
-
splitHTMLByPlaceholder: (html: string, placeholder: string) => string[];
|
|
287
|
-
}
|
|
288
|
-
declare const defaultMinifyOptions: MinifierOptions;
|
|
289
|
-
|
|
290
|
-
type Options = DefaultOptions | CustomOptions<unknown>;
|
|
291
|
-
interface DefaultOptions extends BaseOptions {
|
|
292
|
-
minifyOptions?: Partial<typeof defaultMinifyOptions>;
|
|
293
|
-
}
|
|
294
|
-
interface CustomOptions<S extends Strategy | unknown> extends BaseOptions {
|
|
295
|
-
minifyOptions?: S extends Strategy<infer O> ? Partial<O> : never;
|
|
296
|
-
strategy: S;
|
|
297
|
-
}
|
|
298
|
-
interface BaseOptions {
|
|
299
|
-
fileName?: string;
|
|
300
|
-
generateSourceMap?: ((ms: MagicStringLike, fileName: string) => SourceMap | undefined) | false;
|
|
301
|
-
MagicString?: new (source: string) => MagicStringLike;
|
|
302
|
-
parseLiterals?: typeof parseLiterals;
|
|
303
|
-
parseLiteralsOptions?: Partial<ParseLiteralsOptions>;
|
|
304
|
-
shouldMinify?: (template: Template) => boolean;
|
|
305
|
-
shouldMinifyCSS?: (template: Template) => boolean;
|
|
306
|
-
validate?: Validation | false;
|
|
307
|
-
}
|
|
308
|
-
interface MagicStringLike {
|
|
309
|
-
generateMap: (options?: Partial<SourceMapOptions>) => SourceMap;
|
|
310
|
-
overwrite: (start: number, end: number, content: string) => unknown;
|
|
311
|
-
toString: () => string;
|
|
312
|
-
}
|
|
313
|
-
interface SourceMap {
|
|
314
|
-
file?: string;
|
|
315
|
-
mappings: string;
|
|
316
|
-
names: string[];
|
|
317
|
-
sources: string[];
|
|
318
|
-
sourcesContent?: string[];
|
|
319
|
-
toString: () => string;
|
|
320
|
-
toUrl: () => string;
|
|
321
|
-
version: number;
|
|
322
|
-
}
|
|
323
|
-
interface Validation {
|
|
324
|
-
ensureHTMLPartsValid: (parts: TemplatePart[], htmlParts: string[]) => void;
|
|
325
|
-
ensurePlaceholderValid: (placeholder: unknown) => void;
|
|
326
|
-
}
|
|
327
|
-
interface Result {
|
|
328
|
-
code: string;
|
|
329
|
-
map: SourceMap | undefined;
|
|
330
|
-
}
|
|
331
|
-
declare function minifyHTMLLiterals(source: string, options?: DefaultOptions): Promise<Result | null>;
|
|
332
|
-
declare function minifyHTMLLiterals<S extends Strategy>(source: string, options?: CustomOptions<S>): Promise<Result | null>;
|
|
333
|
-
|
|
334
|
-
interface MinifyHTMLLiteralsOptions {
|
|
335
|
-
exclude?: FilterPattern;
|
|
336
|
-
failOnError?: boolean;
|
|
337
|
-
include?: FilterPattern;
|
|
338
|
-
minifyHTMLLiterals?: typeof minifyHTMLLiterals;
|
|
339
|
-
options?: Partial<Options>;
|
|
340
|
-
}
|
|
341
|
-
declare const minifyHTMLLiteralsPlugin: ({ exclude, failOnError, include, logger, minifyHTMLLiterals, options, }: MinifyHTMLLiteralsOptions & {
|
|
342
|
-
logger: PailServerType;
|
|
343
|
-
}) => Plugin;
|
|
344
|
-
|
|
345
|
-
export { minifyHTMLLiteralsPlugin as m };
|
|
346
|
-
export type { MinifyHTMLLiteralsOptions as M, PailServerType as P };
|