@visulima/packem-rollup 1.0.0-alpha.19 → 1.0.0-alpha.20

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.
@@ -0,0 +1,98 @@
1
+ import { FilterPattern } from '@rollup/pluginutils';
2
+ import { P as PailServerType } from '../../packem_shared/index.server.d-DhMawQMd.mjs';
3
+ import { Plugin } from 'rollup';
4
+ import { SourceMapOptions } from 'magic-string';
5
+ import { MinifierOptions } from 'html-minifier-next';
6
+
7
+ interface Template {
8
+ parts: TemplatePart[];
9
+ tag?: string;
10
+ }
11
+ interface TemplatePart {
12
+ end: number;
13
+ start: number;
14
+ text: string;
15
+ }
16
+ interface Strategy$1<N = unknown> {
17
+ getRootNode: (source: string, fileName?: string) => N;
18
+ getTaggedTemplateTemplate: (node: N) => unknown;
19
+ getTagText: (node: N) => string;
20
+ getTemplateParts: (node: N) => TemplatePart[];
21
+ isTaggedTemplate: (node: N) => boolean;
22
+ isTemplate: (node: N) => boolean;
23
+ walkNodes: (parent: N, visit: (child: N) => void) => void;
24
+ }
25
+
26
+ interface ParseLiteralsOptions {
27
+ fileName?: string;
28
+ strategy?: Partial<Strategy$1<unknown>>;
29
+ }
30
+ declare function parseLiterals(source: string, options?: ParseLiteralsOptions): Template[];
31
+
32
+ interface Strategy<O = unknown, C = unknown> {
33
+ combineHTMLStrings: (parts: TemplatePart[], placeholder: string) => string;
34
+ getPlaceholder: (parts: TemplatePart[]) => string;
35
+ minifyCSS?: (css: string, options?: C) => string;
36
+ minifyHTML: (html: string, options?: O) => string | Promise<string>;
37
+ splitHTMLByPlaceholder: (html: string, placeholder: string) => string[];
38
+ }
39
+ declare const defaultMinifyOptions: MinifierOptions;
40
+
41
+ type Options = DefaultOptions | CustomOptions<unknown>;
42
+ interface DefaultOptions extends BaseOptions {
43
+ minifyOptions?: Partial<typeof defaultMinifyOptions>;
44
+ }
45
+ interface CustomOptions<S extends Strategy | unknown> extends BaseOptions {
46
+ minifyOptions?: S extends Strategy<infer O> ? Partial<O> : never;
47
+ strategy: S;
48
+ }
49
+ interface BaseOptions {
50
+ fileName?: string;
51
+ generateSourceMap?: ((ms: MagicStringLike, fileName: string) => SourceMap | undefined) | false;
52
+ MagicString?: new (source: string) => MagicStringLike;
53
+ parseLiterals?: typeof parseLiterals;
54
+ parseLiteralsOptions?: Partial<ParseLiteralsOptions>;
55
+ shouldMinify?: (template: Template) => boolean;
56
+ shouldMinifyCSS?: (template: Template) => boolean;
57
+ validate?: Validation | false;
58
+ }
59
+ interface MagicStringLike {
60
+ generateMap: (options?: Partial<SourceMapOptions>) => SourceMap;
61
+ overwrite: (start: number, end: number, content: string) => unknown;
62
+ toString: () => string;
63
+ }
64
+ interface SourceMap {
65
+ file?: string;
66
+ mappings: string;
67
+ names: string[];
68
+ sources: string[];
69
+ sourcesContent?: string[];
70
+ toString: () => string;
71
+ toUrl: () => string;
72
+ version: number;
73
+ }
74
+ interface Validation {
75
+ ensureHTMLPartsValid: (parts: TemplatePart[], htmlParts: string[]) => void;
76
+ ensurePlaceholderValid: (placeholder: unknown) => void;
77
+ }
78
+ interface Result {
79
+ code: string;
80
+ map: SourceMap | undefined;
81
+ }
82
+ declare function minifyHTMLLiterals(source: string, options?: DefaultOptions): Promise<Result | null>;
83
+ declare function minifyHTMLLiterals<S extends Strategy>(source: string, options?: CustomOptions<S>): Promise<Result | null>;
84
+
85
+ interface MinifyHTMLLiteralsOptions {
86
+ exclude?: FilterPattern;
87
+ failOnError?: boolean;
88
+ filter?: (id: string) => boolean;
89
+ include?: string | string[];
90
+ minifyHTMLLiterals?: typeof minifyHTMLLiterals;
91
+ options?: Partial<Options>;
92
+ }
93
+ declare const minifyHTMLLiteralsPlugin: ({ exclude, failOnError, filter, include, logger, minifyHTMLLiterals, options, }: MinifyHTMLLiteralsOptions & {
94
+ logger: PailServerType;
95
+ }) => Plugin;
96
+
97
+ export { minifyHTMLLiteralsPlugin as default, minifyHTMLLiteralsPlugin };
98
+ export type { MinifyHTMLLiteralsOptions };
@@ -0,0 +1,79 @@
1
+ // @ts-ignore
2
+ minifyHTMLLiteralsPlugin;
3
+ export { minifyHTMLLiteralsPlugin };
4
+ declare namespace minifyHTMLLiteralsPlugin {
5
+ export interface Template {
6
+ parts: TemplatePart[];
7
+ tag?: string; }
8
+ export interface TemplatePart {
9
+ end: number;
10
+ start: number;
11
+ text: string; }
12
+ export interface Strategy$1<N = unknown> {
13
+ getRootNode: (source: string, fileName?: string) => N;
14
+ getTaggedTemplateTemplate: (node: N) => unknown;
15
+ getTagText: (node: N) => string;
16
+ getTemplateParts: (node: N) => TemplatePart[];
17
+ isTaggedTemplate: (node: N) => boolean;
18
+ isTemplate: (node: N) => boolean;
19
+ walkNodes: (parent: N, visit: (child: N) => void) => void; }
20
+ export interface ParseLiteralsOptions {
21
+ fileName?: string;
22
+ strategy?: Partial<Strategy$1<unknown>>; }
23
+ export function parseLiterals(source: string, options?: ParseLiteralsOptions): Template[];
24
+ export interface Strategy<O = unknown, C = unknown> {
25
+ combineHTMLStrings: (parts: TemplatePart[], placeholder: string) => string;
26
+ getPlaceholder: (parts: TemplatePart[]) => string;
27
+ minifyCSS?: (css: string, options?: C) => string;
28
+ minifyHTML: (html: string, options?: O) => string | Promise<string>;
29
+ splitHTMLByPlaceholder: (html: string, placeholder: string) => string[]; }
30
+ export const defaultMinifyOptions: MinifierOptions;
31
+ export type Options = DefaultOptions | CustomOptions<unknown>;
32
+ export interface DefaultOptions extends BaseOptions {
33
+ minifyOptions?: Partial<typeof defaultMinifyOptions>; }
34
+ export interface CustomOptions<S extends Strategy | unknown> extends BaseOptions {
35
+ minifyOptions?: S extends Strategy<infer O> ? Partial<O> : never;
36
+ strategy: S; }
37
+ export interface BaseOptions {
38
+ fileName?: string;
39
+ generateSourceMap?: ((ms: MagicStringLike, fileName: string) => SourceMap | undefined) | false;
40
+ MagicString?: new (source: string) => MagicStringLike;
41
+ parseLiterals?: typeof parseLiterals;
42
+ parseLiteralsOptions?: Partial<ParseLiteralsOptions>;
43
+ shouldMinify?: (template: Template) => boolean;
44
+ shouldMinifyCSS?: (template: Template) => boolean;
45
+ validate?: Validation | false; }
46
+ export interface MagicStringLike {
47
+ generateMap: (options?: Partial<SourceMapOptions>) => SourceMap;
48
+ overwrite: (start: number, end: number, content: string) => unknown;
49
+ toString: () => string; }
50
+ export interface SourceMap {
51
+ file?: string;
52
+ mappings: string;
53
+ names: string[];
54
+ sources: string[];
55
+ sourcesContent?: string[];
56
+ toString: () => string;
57
+ toUrl: () => string;
58
+ version: number; }
59
+ export interface Validation {
60
+ ensureHTMLPartsValid: (parts: TemplatePart[], htmlParts: string[]) => void;
61
+ ensurePlaceholderValid: (placeholder: unknown) => void; }
62
+ export interface Result {
63
+ code: string;
64
+ map: SourceMap | undefined; }
65
+ export function minifyHTMLLiterals<S extends Strategy>(source: string, options?: CustomOptions<S>): Promise<Result | null>;
66
+ export interface MinifyHTMLLiteralsOptions {
67
+ exclude?: FilterPattern;
68
+ failOnError?: boolean;
69
+ filter?: (id: string) => boolean;
70
+ include?: string | string[];
71
+ minifyHTMLLiterals?: typeof minifyHTMLLiterals;
72
+ options?: Partial<Options>; }
73
+ export const minifyHTMLLiteralsPlugin: ({ exclude, failOnError, filter, include, logger, minifyHTMLLiterals, options, }: MinifyHTMLLiteralsOptions & {
74
+ logger: PailServerType;
75
+ }) => Plugin;
76
+ import _default = minifyHTMLLiteralsPlugin;
77
+ export { _default as default };
78
+ }
79
+ export = minifyHTMLLiteralsPlugin;
@@ -0,0 +1,3 @@
1
+ var A=Object.defineProperty;var o=(t,e)=>A(t,"name",{value:e,configurable:!0});import{createFilter as k}from"@rollup/pluginutils";import $ from"magic-string";import d from"typescript";import V from"clean-css";import{minify as W}from"html-minifier-next";let y;const F={getHeadTemplatePart(t){const e=t.getFullText(y),i=e.indexOf("`")+1,r=d.isTemplateHead(t)?-2:-1;return{end:t.end+r,start:t.pos+i,text:e.slice(i,e.length+r)}},getMiddleTailTemplatePart(t){const e=t.getText(y),i=d.isTemplateMiddle(t)?2:1;return{end:t.end-i,start:t.getStart(y)+1,text:e.slice(1,e.length-i)}},getRootNode(t,e=""){return d.createSourceFile(e,t,d.ScriptTarget.ESNext)},getTaggedTemplateTemplate(t){return t.template},getTagText(t){return t.tag.getText(y)},getTemplateParts(t){return d.isNoSubstitutionTemplateLiteral(t)?[this.getHeadTemplatePart(t)]:[this.getHeadTemplatePart(t.head),...t.templateSpans.map(e=>this.getMiddleTailTemplatePart(e.literal))]},isTaggedTemplate:d.isTaggedTemplateExpression,isTemplate:d.isTemplateLiteral,walkChildNodes(t,e){e(t),d.forEachChild(t,i=>{this.walkChildNodes(i,e)})},walkNodes(t,e){y=t,this.walkChildNodes(t,e),y=void 0}};var R=Object.defineProperty,B=o((t,e)=>R(t,"name",{value:e,configurable:!0}),"i");function w(t,e={}){const i={...F,...e.strategy},r=[],n=[];return i.walkNodes(i.getRootNode(t,e.fileName),s=>{if(i.isTaggedTemplate(s)){const a=i.getTaggedTemplateTemplate(s);n.push(a),r.push({parts:i.getTemplateParts(a),tag:i.getTagText(s)})}else i.isTemplate(s)&&!n.includes(s)&&r.push({parts:i.getTemplateParts(s)})}),r}o(w,"parseLiterals");B(w,"parseLiterals");var _=Object.defineProperty,P=o((t,e)=>_(t,"name",{value:e,configurable:!0}),"f");const S={One:"1",Two:"2",Zero:"0"};function b(t){const e={[S.One]:{tidySelectors:!1,transform:void 0},[S.Two]:{tidySelectors:!1,transform:void 0},[S.Zero]:{}};if(t===void 0)return e;if(typeof t=="number"){const i=t.toString();return{...e,[i]:{...e[i]}}}return t}o(b,"O");P(b,"optimizationLevelFrom");const G={},I={caseSensitive:!0,collapseWhitespace:!0,decodeEntities:!0,minifyCSS:G,minifyJS:!0,processConditionalComments:!0,removeAttributeQuotes:!1,removeComments:!0,removeEmptyAttributes:!0,removeScriptTypeAttributes:!0,removeStyleLinkTypeAttributes:!0,useShortDoctype:!0},X={combineHTMLStrings(t,e){return t.map(i=>i.text).join(e)},getPlaceholder(t){let e="@TEMPLATE_EXPRESSION";for(;t.some(i=>i.text.includes(e+"();"));)e+="_";return e+"();"},minifyCSS(t,e={}){const i=C(e),r=new V(i).minify(t);if(r.errors&&r.errors.length>0)throw new Error(r.errors.join(`
2
+
3
+ `));return i.level[S.One].tidySelectors&&(r.styles=O(t,r.styles)),r.styles},async minifyHTML(t,e={}){let i;e.minifyCSS?i=e.minifyCSS!==!0&&typeof e.minifyCSS!="function"?{...e.minifyCSS}:{}:i=!1;let r=!1;i&&(r=C(i));let n=await W(t,{...e,minifyCSS:r});if(e.collapseWhitespace){const s=[...n.matchAll(/<svg/g)].reverse();for(const a of s){const f=a.index,c=n.indexOf("</svg",f);if(c===-1)continue;const m=n.slice(0,Math.max(0,f));let l=n.substring(f,c);const g=n.slice(Math.max(0,c));l=l.replaceAll(/\r?\n/g,""),n=m+l+g}}return r&&r.level[S.One].tidySelectors&&(n=O(t,n)),n},splitHTMLByPlaceholder(t,e){const i=t.split(e);if(e.endsWith(";")){const r=e.slice(0,Math.max(0,e.length-1));for(let n=i.length-1;n>=0;n--){const s=i[n];s!==void 0&&i.splice(n,1,...s.split(r))}}return i}};function C(t={}){const e=b(t.level),i=typeof t.level=="object"&&t.level[1]&&t.level[1].transform;return e[S.One].transform=(r,n)=>n.startsWith("@TEMPLATE_EXPRESSION")&&!n.endsWith(";")?n=`${n};`:i?i(r,n):n,{...t,level:e}}o(C,"adjustMinifyCSSOptions");P(C,"adjustMinifyCSSOptions");function O(t,e){const i=/(:.+\((.*)\))\s*\{/g;let r;for(;(r=i.exec(t))!=null;){const n=r[1],s=r[2];if(!n||!s||!/\s/.test(s))continue;const a=s.replaceAll(/\s/g,""),f=n.replace(s,a),c=e.indexOf(f);if(c===-1)continue;const m=c+f.length;e=e.slice(0,Math.max(0,c))+n+e.slice(Math.max(0,m))}return e}o(O,"u");P(O,"fixCleanCssTidySelectors");var Z=Object.defineProperty,M=o((t,e)=>Z(t,"name",{value:e,configurable:!0}),"l");function E(t,e){return t.generateMap({file:`${e}.map`,hires:!0,source:e})}o(E,"defaultGenerateSourceMap");M(E,"defaultGenerateSourceMap");function H(t){const e=t.tag&&t.tag.toLowerCase();return!!e&&(e.includes("html")||e.includes("svg"))}o(H,"defaultShouldMinify");M(H,"defaultShouldMinify");function N(t){return!!t.tag&&t.tag.toLowerCase().includes("css")}o(N,"defaultShouldMinifyCSS");M(N,"defaultShouldMinifyCSS");const z={ensureHTMLPartsValid(t,e){if(t.length!==e.length)throw new Error("splitHTMLByPlaceholder() must return same number of strings as template parts")},ensurePlaceholderValid(t){if(typeof t!="string"||t.length===0)throw new Error("getPlaceholder() must return a non-empty string")}};async function j(t,e={}){e.minifyOptions={...I,...e.minifyOptions},e.MagicString||(e.MagicString=$),e.parseLiterals||(e.parseLiterals=w),e.shouldMinify||(e.shouldMinify=H),e.shouldMinifyCSS||(e.shouldMinifyCSS=N),e.parseLiteralsOptions={fileName:e.fileName,...e.parseLiteralsOptions};const i=e.parseLiterals(t,e.parseLiteralsOptions),r=e.strategy||X,{shouldMinify:n,shouldMinifyCSS:s}=e;let a;e.validate!==!1&&(a=e.validate||z);const f=new e.MagicString(t);for(const l of i){const g=n(l),x=!!r.minifyCSS&&s(l);if(g||x){const v=r.getPlaceholder(l.parts);a&&a.ensurePlaceholderValid(v);const T=r.combineHTMLStrings(l.parts,v);let h;if(x){const u=(e.minifyOptions||{}).minifyCSS;if(typeof u=="function"){const p=u(T);h=typeof p=="string"?p:await p}else if(u===!1)h=T;else{const p=typeof u=="object"?u:void 0;h=await r.minifyCSS(T,p)}}else h=await r.minifyHTML(T,e.minifyOptions);const L=r.splitHTMLByPlaceholder(h,v);a&&a.ensureHTMLPartsValid(l.parts,L),l.parts.forEach((u,p)=>{u.start<u.end&&L[p]!==void 0&&f.overwrite(u.start,u.end,L[p])})}}const c=f.toString();if(t===c)return null;let m;return e.generateSourceMap!==!1&&(m=(e.generateSourceMap||E)(f,e.fileName??"")),{code:c,map:m}}o(j,"minifyHTMLLiterals");M(j,"minifyHTMLLiterals");var D=Object.defineProperty,J=o((t,e)=>D(t,"name",{value:e,configurable:!0}),"s");const te=J(({exclude:t,failOnError:e=!1,filter:i,include:r,logger:n,minifyHTMLLiterals:s,options:a})=>{s||(s=j),i||(i=k(r,t));const f=a||{};return{name:"packem:minify-html-literals",async transform(c,m){if(i(m))try{return await s(c,{...f,fileName:m})}catch(l){const g=l instanceof Error?l.message:l;e?this.error(g):n.warn({message:g,prefix:"plugin:minify-html-literals"})}}}},"minifyHTMLLiteralsPlugin");export{te as default,te as minifyHTMLLiteralsPlugin};
@@ -1,6 +1,7 @@
1
1
  import { IsolatedDeclarationsOptions } from 'oxc-transform';
2
- import { t as IsolatedDeclarationsResult, Y as OxcResolveOptions, P as PailServerType, y as TransformerFn } from '../../packem_shared/types-h27kdghe.mjs';
3
- export { Z as InternalOXCTransformPluginConfig, _ as OXCTransformPluginConfig } from '../../packem_shared/types-h27kdghe.mjs';
2
+ import { t as IsolatedDeclarationsResult, X as OxcResolveOptions, x as TransformerFn } from '../../packem_shared/types-BK7k04DQ.mjs';
3
+ export { Y as InternalOXCTransformPluginConfig, Z as OXCTransformPluginConfig } from '../../packem_shared/types-BK7k04DQ.mjs';
4
+ import { P as PailServerType } from '../../packem_shared/index.server.d-DhMawQMd.mjs';
4
5
  import { Plugin } from 'rollup';
5
6
  import '@rollup/plugin-alias';
6
7
  import '@rollup/plugin-commonjs';
@@ -1,6 +1,7 @@
1
1
  import { IsolatedDeclarationsOptions } from 'oxc-transform';
2
- import { t as IsolatedDeclarationsResult, Y as OxcResolveOptions, P as PailServerType, y as TransformerFn } from '../../packem_shared/types-h27kdghe.js';
3
- export { Z as InternalOXCTransformPluginConfig, _ as OXCTransformPluginConfig } from '../../packem_shared/types-h27kdghe.js';
2
+ import { t as IsolatedDeclarationsResult, X as OxcResolveOptions, x as TransformerFn } from '../../packem_shared/types-DvaEike_.js';
3
+ export { Y as InternalOXCTransformPluginConfig, Z as OXCTransformPluginConfig } from '../../packem_shared/types-DvaEike_.js';
4
+ import { P as PailServerType } from '../../packem_shared/index.server.d-DhMawQMd.js';
4
5
  import { Plugin } from 'rollup';
5
6
  import '@rollup/plugin-alias';
6
7
  import '@rollup/plugin-commonjs';
@@ -1,6 +1,6 @@
1
1
  import '@rollup/pluginutils';
2
2
  import 'sucrase';
3
- export { $ as SucrasePluginConfig, a0 as sucrasePlugin } from '../../packem_shared/types-h27kdghe.mjs';
3
+ export { _ as SucrasePluginConfig, $ as sucrasePlugin } from '../../packem_shared/types-BK7k04DQ.mjs';
4
4
  import '@rollup/plugin-alias';
5
5
  import '@rollup/plugin-commonjs';
6
6
  import '@rollup/plugin-json';
@@ -12,6 +12,7 @@ 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 '../../packem_shared/index.server.d-DhMawQMd.mjs';
15
16
  import 'esbuild';
16
17
  import '@visulima/package';
17
18
  import '@visulima/packem-share/types';
@@ -1,6 +1,6 @@
1
1
  import '@rollup/pluginutils';
2
2
  import 'sucrase';
3
- export { $ as SucrasePluginConfig, a0 as sucrasePlugin } from '../../packem_shared/types-h27kdghe.js';
3
+ export { _ as SucrasePluginConfig, $ as sucrasePlugin } from '../../packem_shared/types-DvaEike_.js';
4
4
  import '@rollup/plugin-alias';
5
5
  import '@rollup/plugin-commonjs';
6
6
  import '@rollup/plugin-json';
@@ -12,6 +12,7 @@ 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 '../../packem_shared/index.server.d-DhMawQMd.js';
15
16
  import 'esbuild';
16
17
  import '@visulima/package';
17
18
  import '@visulima/packem-share/types';
@@ -1,5 +1,5 @@
1
- import { t as IsolatedDeclarationsResult, y as TransformerFn } from '../../packem_shared/types-h27kdghe.mjs';
2
- export { K as SwcPluginConfig } from '../../packem_shared/types-h27kdghe.mjs';
1
+ import { t as IsolatedDeclarationsResult, x as TransformerFn } from '../../packem_shared/types-BK7k04DQ.mjs';
2
+ export { H as SwcPluginConfig } from '../../packem_shared/types-BK7k04DQ.mjs';
3
3
  import '@rollup/plugin-alias';
4
4
  import '@rollup/plugin-commonjs';
5
5
  import '@rollup/plugin-json';
@@ -12,6 +12,7 @@ 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 '../../packem_shared/index.server.d-DhMawQMd.mjs';
15
16
  import 'esbuild';
16
17
  import '@visulima/package';
17
18
  import '@visulima/packem-share/types';
@@ -1,5 +1,5 @@
1
- import { t as IsolatedDeclarationsResult, y as TransformerFn } from '../../packem_shared/types-h27kdghe.js';
2
- export { K as SwcPluginConfig } from '../../packem_shared/types-h27kdghe.js';
1
+ import { t as IsolatedDeclarationsResult, x as TransformerFn } from '../../packem_shared/types-DvaEike_.js';
2
+ export { H as SwcPluginConfig } from '../../packem_shared/types-DvaEike_.js';
3
3
  import '@rollup/plugin-alias';
4
4
  import '@rollup/plugin-commonjs';
5
5
  import '@rollup/plugin-json';
@@ -12,6 +12,7 @@ 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 '../../packem_shared/index.server.d-DhMawQMd.js';
15
16
  import 'esbuild';
16
17
  import '@visulima/package';
17
18
  import '@visulima/packem-share/types';
@@ -1,6 +1,7 @@
1
1
  import { TranspileOptions } from 'typescript';
2
- import { t as IsolatedDeclarationsResult, P as PailServerType, M as TsConfigResult } from '../../packem_shared/types-h27kdghe.mjs';
3
- export { Q as PatchTypesOptions, W as TsconfigPathsPluginOptions, V as patchTypescriptTypes, V as patchTypescriptTypesPlugin, X as resolveTsconfigPathsPlugin } from '../../packem_shared/types-h27kdghe.mjs';
2
+ import { t as IsolatedDeclarationsResult, K as TsConfigResult } from '../../packem_shared/types-BK7k04DQ.mjs';
3
+ export { M as PatchTypesOptions, V as TsconfigPathsPluginOptions, Q as patchTypescriptTypes, Q as patchTypescriptTypesPlugin, W as resolveTsconfigPathsPlugin } from '../../packem_shared/types-BK7k04DQ.mjs';
4
+ import { P as PailServerType } from '../../packem_shared/index.server.d-DhMawQMd.mjs';
4
5
  import { Plugin } from 'rollup';
5
6
  import '@rollup/plugin-alias';
6
7
  import '@rollup/plugin-commonjs';
@@ -1,6 +1,7 @@
1
1
  import { TranspileOptions } from 'typescript';
2
- import { t as IsolatedDeclarationsResult, P as PailServerType, M as TsConfigResult } from '../../packem_shared/types-h27kdghe.js';
3
- export { Q as PatchTypesOptions, W as TsconfigPathsPluginOptions, V as patchTypescriptTypes, V as patchTypescriptTypesPlugin, X as resolveTsconfigPathsPlugin } from '../../packem_shared/types-h27kdghe.js';
2
+ import { t as IsolatedDeclarationsResult, K as TsConfigResult } from '../../packem_shared/types-DvaEike_.js';
3
+ export { M as PatchTypesOptions, V as TsconfigPathsPluginOptions, Q as patchTypescriptTypes, Q as patchTypescriptTypesPlugin, W as resolveTsconfigPathsPlugin } from '../../packem_shared/types-DvaEike_.js';
4
+ import { P as PailServerType } from '../../packem_shared/index.server.d-DhMawQMd.js';
4
5
  import { Plugin } from 'rollup';
5
6
  import '@rollup/plugin-alias';
6
7
  import '@rollup/plugin-commonjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/packem-rollup",
3
- "version": "1.0.0-alpha.19",
3
+ "version": "1.0.0-alpha.20",
4
4
  "description": "Rollup plugins for packem",
5
5
  "keywords": [
6
6
  "visulima",
@@ -57,6 +57,10 @@
57
57
  "types": "./dist/plugins/sucrase/index.d.mts",
58
58
  "default": "./dist/plugins/sucrase/index.mjs"
59
59
  },
60
+ "./minify-html-literals": {
61
+ "types": "./dist/plugins/minify-html-literals/index.d.mts",
62
+ "default": "./dist/plugins/minify-html-literals/index.mjs"
63
+ },
60
64
  "./package.json": "./package.json"
61
65
  },
62
66
  "files": [
@@ -78,14 +82,16 @@
78
82
  "@visulima/find-cache-dir": "1.0.34",
79
83
  "@visulima/fs": "3.1.8",
80
84
  "@visulima/package": "4.0.0",
81
- "@visulima/packem-share": "1.0.0-alpha.12",
85
+ "@visulima/packem-share": "1.0.0-alpha.13",
82
86
  "@visulima/path": "1.4.0",
83
87
  "@visulima/source-map": "1.0.20",
84
88
  "cjs-module-lexer": "^2.1.0",
89
+ "clean-css": "^5.3.3",
85
90
  "glob-parent": "6.0.2",
91
+ "html-minifier-next": "^2.1.6",
86
92
  "magic-string": "0.30.19",
87
93
  "mlly": "1.8.0",
88
- "oxc-parser": "0.91.0",
94
+ "oxc-parser": "0.93.0",
89
95
  "oxc-resolver": "11.8.2",
90
96
  "rollup-plugin-dts": "6.2.3",
91
97
  "rollup-plugin-license": "3.6.0",