@visulima/packem-rollup 1.0.0-alpha.5 → 1.0.0-alpha.7
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 +17 -0
- package/dist/index.d.mts +4 -12
- package/dist/index.d.ts +4 -12
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/dataUriPlugin-BOjv6O2O.mjs +1 -0
- package/dist/packem_shared/{types-yL82LLIx.d.mts → types-BKqesFEF.d.mts} +9 -2
- package/dist/packem_shared/{types-yL82LLIx.d.ts → types-BKqesFEF.d.ts} +9 -2
- package/dist/plugins/esbuild/index.d.mts +2 -2
- package/dist/plugins/esbuild/index.d.ts +2 -2
- package/dist/plugins/oxc/index.d.mts +5 -5
- package/dist/plugins/oxc/index.d.ts +5 -5
- package/dist/plugins/oxc/index.mjs +1 -1
- package/dist/plugins/sucrase/index.d.mts +1 -1
- package/dist/plugins/sucrase/index.d.ts +1 -1
- package/dist/plugins/swc/index.d.mts +4 -4
- package/dist/plugins/swc/index.d.ts +4 -4
- package/dist/plugins/swc/index.mjs +1 -1
- package/dist/plugins/typescript/index.d.mts +2 -2
- package/dist/plugins/typescript/index.d.ts +2 -2
- package/package.json +5 -5
- package/dist/packem_shared/dataUriPlugin-Cgm4fvnn.mjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## @visulima/packem-rollup [1.0.0-alpha.7](https://github.com/visulima/packem/compare/@visulima/packem-rollup@1.0.0-alpha.6...@visulima/packem-rollup@1.0.0-alpha.7) (2025-08-17)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* added tailwindcss oxide loader ([#166](https://github.com/visulima/packem/issues/166)) ([acbbc59](https://github.com/visulima/packem/commit/acbbc59071e771a94d1a0c5435b267e483e3ad73))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
|
|
10
|
+
* **@visulima/packem-share:** upgraded to 1.0.0-alpha.6
|
|
11
|
+
|
|
12
|
+
## @visulima/packem-rollup [1.0.0-alpha.6](https://github.com/visulima/packem/compare/@visulima/packem-rollup@1.0.0-alpha.5...@visulima/packem-rollup@1.0.0-alpha.6) (2025-08-10)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* add lucide-static integration and SVG comment stripping ([ac344b3](https://github.com/visulima/packem/commit/ac344b3eb9566e479764625cd877617379d10c16))
|
|
17
|
+
|
|
1
18
|
## @visulima/packem-rollup [1.0.0-alpha.5](https://github.com/visulima/packem/compare/@visulima/packem-rollup@1.0.0-alpha.4...@visulima/packem-rollup@1.0.0-alpha.5) (2025-08-10)
|
|
2
19
|
|
|
3
20
|
### Bug Fixes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Plugin, RenderedChunk, GetManualChunk, CustomPluginOptions } from 'rollup';
|
|
2
|
-
import { P as PailServerType } from './packem_shared/types-
|
|
3
|
-
export { C as CJSInteropOptions, a as CopyPluginOptions, E as EsmShimCjsSyntaxOptions, I as IsolatedDeclarationsOptions,
|
|
4
|
-
import { FilterPattern } from '@rollup/pluginutils';
|
|
2
|
+
import { P as PailServerType } from './packem_shared/types-BKqesFEF.mjs';
|
|
3
|
+
export { C as CJSInteropOptions, a as CopyPluginOptions, D as DataUriPluginOptions, E as EsmShimCjsSyntaxOptions, I as IsolatedDeclarationsOptions, n as IsolatedDeclarationsResult, o as IsolatedDeclarationsTransformer, J as JSXRemoveAttributesPlugin, L as LicenseOptions, p as PackemRollupOptions, R as RawLoaderOptions, q as RollupPlugins, S as ShebangOptions, h as SourcemapsPluginOptions, T as TransformerFn, t as TransformerName, U as UrlOptions, c as cjsInteropPlugin, b as copyPlugin, d as dataUriPlugin, e as esmShimCjsSyntaxPlugin, g as getShebang, i as isolatedDeclarationsPlugin, j as jsxRemoveAttributes, l as licensePlugin, m as makeExecutable, r as rawPlugin, f as removeShebangPlugin, s as shebangPlugin, k as sourcemapsPlugin, u as urlPlugin } from './packem_shared/types-BKqesFEF.mjs';
|
|
5
4
|
export { b as browserslistToEsbuild } from './packem_shared/browserslist-to-esbuild-DY9HwYtp.mjs';
|
|
6
5
|
import { RollupJsonOptions } from '@rollup/plugin-json';
|
|
7
6
|
import { FileCache } from '@visulima/packem-share/utils';
|
|
7
|
+
import { FilterPattern } from '@rollup/pluginutils';
|
|
8
8
|
import { BuildContextBuildAssetAndChunk, BuildContextBuildEntry } from '@visulima/packem-share/types';
|
|
9
9
|
export { Alias, ResolverObject as AliasResolverObject, ResolvedAlias, RollupAliasOptions, default as alias } from '@rollup/plugin-alias';
|
|
10
10
|
export { RollupCommonJSOptions, default as commonjs } from '@rollup/plugin-commonjs';
|
|
@@ -25,13 +25,6 @@ import 'sucrase';
|
|
|
25
25
|
|
|
26
26
|
declare const chunkSplitter: () => Plugin;
|
|
27
27
|
|
|
28
|
-
type DataUriPluginOptions = {
|
|
29
|
-
exclude?: FilterPattern;
|
|
30
|
-
include?: FilterPattern;
|
|
31
|
-
srcset?: boolean;
|
|
32
|
-
};
|
|
33
|
-
declare const dataUriPlugin: (options?: DataUriPluginOptions) => Plugin;
|
|
34
|
-
|
|
35
28
|
type FixDtsDefaultCjsExportsPluginOptions = {
|
|
36
29
|
matcher?: (info: RenderedChunk) => boolean;
|
|
37
30
|
};
|
|
@@ -60,5 +53,4 @@ declare const getCustomModuleLayer: (moduleId: string) => string | undefined;
|
|
|
60
53
|
|
|
61
54
|
declare const getModuleLayer: (moduleMeta: CustomPluginOptions) => any;
|
|
62
55
|
|
|
63
|
-
export { cachingPlugin, chunkSplitter, createSplitChunks,
|
|
64
|
-
export type { DataUriPluginOptions };
|
|
56
|
+
export { cachingPlugin, chunkSplitter, createSplitChunks, fixDtsDefaultCjsExportsPlugin, fixDynamicImportExtension, getCustomModuleLayer, getModuleLayer, JSONPlugin as jsonPlugin, metafilePlugin, preserveDirectives as preserveDirectivesPlugin, resolveFileUrl as resolveFileUrlPlugin };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Plugin, RenderedChunk, GetManualChunk, CustomPluginOptions } from 'rollup';
|
|
2
|
-
import { P as PailServerType } from './packem_shared/types-
|
|
3
|
-
export { C as CJSInteropOptions, a as CopyPluginOptions, E as EsmShimCjsSyntaxOptions, I as IsolatedDeclarationsOptions,
|
|
4
|
-
import { FilterPattern } from '@rollup/pluginutils';
|
|
2
|
+
import { P as PailServerType } from './packem_shared/types-BKqesFEF.js';
|
|
3
|
+
export { C as CJSInteropOptions, a as CopyPluginOptions, D as DataUriPluginOptions, E as EsmShimCjsSyntaxOptions, I as IsolatedDeclarationsOptions, n as IsolatedDeclarationsResult, o as IsolatedDeclarationsTransformer, J as JSXRemoveAttributesPlugin, L as LicenseOptions, p as PackemRollupOptions, R as RawLoaderOptions, q as RollupPlugins, S as ShebangOptions, h as SourcemapsPluginOptions, T as TransformerFn, t as TransformerName, U as UrlOptions, c as cjsInteropPlugin, b as copyPlugin, d as dataUriPlugin, e as esmShimCjsSyntaxPlugin, g as getShebang, i as isolatedDeclarationsPlugin, j as jsxRemoveAttributes, l as licensePlugin, m as makeExecutable, r as rawPlugin, f as removeShebangPlugin, s as shebangPlugin, k as sourcemapsPlugin, u as urlPlugin } from './packem_shared/types-BKqesFEF.js';
|
|
5
4
|
export { b as browserslistToEsbuild } from './packem_shared/browserslist-to-esbuild-DY9HwYtp.js';
|
|
6
5
|
import { RollupJsonOptions } from '@rollup/plugin-json';
|
|
7
6
|
import { FileCache } from '@visulima/packem-share/utils';
|
|
7
|
+
import { FilterPattern } from '@rollup/pluginutils';
|
|
8
8
|
import { BuildContextBuildAssetAndChunk, BuildContextBuildEntry } from '@visulima/packem-share/types';
|
|
9
9
|
export { Alias, ResolverObject as AliasResolverObject, ResolvedAlias, RollupAliasOptions, default as alias } from '@rollup/plugin-alias';
|
|
10
10
|
export { RollupCommonJSOptions, default as commonjs } from '@rollup/plugin-commonjs';
|
|
@@ -25,13 +25,6 @@ import 'sucrase';
|
|
|
25
25
|
|
|
26
26
|
declare const chunkSplitter: () => Plugin;
|
|
27
27
|
|
|
28
|
-
type DataUriPluginOptions = {
|
|
29
|
-
exclude?: FilterPattern;
|
|
30
|
-
include?: FilterPattern;
|
|
31
|
-
srcset?: boolean;
|
|
32
|
-
};
|
|
33
|
-
declare const dataUriPlugin: (options?: DataUriPluginOptions) => Plugin;
|
|
34
|
-
|
|
35
28
|
type FixDtsDefaultCjsExportsPluginOptions = {
|
|
36
29
|
matcher?: (info: RenderedChunk) => boolean;
|
|
37
30
|
};
|
|
@@ -60,5 +53,4 @@ declare const getCustomModuleLayer: (moduleId: string) => string | undefined;
|
|
|
60
53
|
|
|
61
54
|
declare const getModuleLayer: (moduleMeta: CustomPluginOptions) => any;
|
|
62
55
|
|
|
63
|
-
export { cachingPlugin, chunkSplitter, createSplitChunks,
|
|
64
|
-
export type { DataUriPluginOptions };
|
|
56
|
+
export { cachingPlugin, chunkSplitter, createSplitChunks, fixDtsDefaultCjsExportsPlugin, fixDynamicImportExtension, getCustomModuleLayer, getModuleLayer, JSONPlugin as jsonPlugin, metafilePlugin, preserveDirectives as preserveDirectivesPlugin, resolveFileUrl as resolveFileUrlPlugin };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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 u}from"./packem_shared/dataUriPlugin-
|
|
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 u}from"./packem_shared/dataUriPlugin-BOjv6O2O.mjs";import{default as p}from"./packem_shared/browserslistToEsbuild-C0IWmbNe.mjs";import{esmShimCjsSyntaxPlugin as x}from"./packem_shared/esmShimCjsSyntaxPlugin-DjKqX4DE.mjs";import{fixDtsDefaultCjsExportsPlugin as d}from"./packem_shared/fixDtsDefaultCjsExportsPlugin-Dp1UcHVR.mjs";import{default as P}from"./packem_shared/fixDynamicImportExtension-BBGNRniz.mjs";import{isolatedDeclarationsPlugin as b}from"./packem_shared/isolatedDeclarationsPlugin-A0wmmw3Y.mjs";import{default as j}from"./packem_shared/jsonPlugin-BAi3Da-h.mjs";import{jsxRemoveAttributes as y}from"./packem_shared/jsxRemoveAttributes-B1PLPffj.mjs";import{license as D}from"./packem_shared/licensePlugin-C5yzUqe-.mjs";import{default as E}from"./packem_shared/metafilePlugin-ObS4J7mO.mjs";import{default as w}from"./packem_shared/cachingPlugin-D0BBFJPD.mjs";import{default as L}from"./packem_shared/preserveDirectivesPlugin-B49Cbykd.mjs";import{rawPlugin as R}from"./packem_shared/rawPlugin-BqlR6ZOI.mjs";import{default as z}from"./packem_shared/resolveFileUrlPlugin-BkpjVHeK.mjs";import{getShebang as F,makeExecutable as N,removeShebangPlugin as T,shebangPlugin as V}from"./packem_shared/makeExecutable-6aOVHoJR.mjs";import{sourcemapsPlugin as B}from"./packem_shared/sourcemapsPlugin-B4W3J79w.mjs";import{urlPlugin as H}from"./packem_shared/urlPlugin-Bm2IE00y.mjs";import{default as K}from"./packem_shared/createSplitChunks-CGDk55G3.mjs";import{default as Q}from"./packem_shared/getCustomModuleLayer-d8i66lfh.mjs";import{default as X}from"./packem_shared/getModuleLayer-rF9RxnJ5.mjs";import{default as Z}from"@rollup/plugin-alias";import{default as $}from"@rollup/plugin-commonjs";import{default as re}from"@rollup/plugin-dynamic-import-vars";import{default as te}from"@rollup/plugin-inject";import{default as le}from"@rollup/plugin-node-resolve";import{default as se}from"@rollup/plugin-replace";import{default as me}from"@rollup/plugin-wasm";import{default as ie}from"rollup-plugin-polyfill-node";import{PluginPure as ne}from"rollup-plugin-pure";import{default as ge}from"rollup-plugin-visualizer";export{Z as alias,p as browserslistToEsbuild,w as cachingPlugin,o as chunkSplitter,a as cjsInteropPlugin,$ as commonjs,f as copyPlugin,K as createSplitChunks,u as dataUriPlugin,re as dynamicImportVars,x as esmShimCjsSyntaxPlugin,d as fixDtsDefaultCjsExportsPlugin,P as fixDynamicImportExtension,Q as getCustomModuleLayer,X as getModuleLayer,F as getShebang,te as inject,b as isolatedDeclarationsPlugin,j as jsonPlugin,y as jsxRemoveAttributes,D as licensePlugin,N as makeExecutable,E as metafilePlugin,le as nodeResolve,ie as polyfillNode,L as preserveDirectivesPlugin,ne as pure,R as rawPlugin,T as removeShebangPlugin,se as replace,z as resolveFileUrlPlugin,V as shebangPlugin,B as sourcemapsPlugin,H as urlPlugin,ge as visualizer,me as wasm};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var f=Object.defineProperty;var o=(e,a)=>f(e,"name",{value:a,configurable:!0});import{createFilter as m}from"@rollup/pluginutils";import{readFile as n}from"@visulima/fs";import{R as g}from"./index-Cj1Okk1t.mjs";var h=Object.defineProperty,r=o((e,a)=>h(e,"name",{value:a,configurable:!0}),"e");const l={quotes:/"/g,urlHexPairs:/%[\dA-F]{2}/g,whitespace:/\s+/g},x=r(e=>{switch(e){case"%2F":return"/";case"%3A":return":";case"%3D":return"=";case"%20":return" ";default:return e.toLowerCase()}},"specialHexEncode"),$=r(e=>e.trim().replaceAll(l.whitespace," "),"collapseWhitespace"),F=r(e=>encodeURIComponent(e).replaceAll(l.urlHexPairs,x),"dataUriPayload"),b=r(e=>e.replaceAll(/<!--[\s\S]*?-->/g,""),"stripSvgComments"),u=r(e=>{const a=e.startsWith("\uFEFF")?e.slice(1):e,s=b(a),t=$(s).replaceAll(l.quotes,"'");return`data:image/svg+xml,${F(t)}`},"svgToTinyDataUri"),y=r((e={})=>{const a=m(e.include??[/\?data-uri$/],e.exclude);return{async load(s){if(!a(s)||!s.endsWith("?data-uri"))return;const t=s.replace(/\?data-uri$/,"");this.addWatchFile(t);const i=g.getType(t)||"application/octet-stream";if(i==="image/svg+xml"){const c=await n(t,{buffer:!1});return`export default "${e.srcset?u(c).replaceAll(" ","%20"):u(c)}"`}const d=await n(t,{buffer:!0}),p=Buffer.from(d).toString("base64");return`export default "${`${i.startsWith("text/")?`data:${i};charset=utf-8;base64,`:`data:${i};base64,`}${p}`}"`},name:"packem:data-uri"}},"dataUriPlugin");export{y as dataUriPlugin,y as default};
|
|
@@ -288,6 +288,13 @@ type SingleTargetDesc = {
|
|
|
288
288
|
};
|
|
289
289
|
declare const copyPlugin: (options: CopyPluginOptions, logger: PailServerType) => Plugin$1;
|
|
290
290
|
|
|
291
|
+
type DataUriPluginOptions = {
|
|
292
|
+
exclude?: FilterPattern;
|
|
293
|
+
include?: FilterPattern;
|
|
294
|
+
srcset?: boolean;
|
|
295
|
+
};
|
|
296
|
+
declare const dataUriPlugin: (options?: DataUriPluginOptions) => Plugin$1;
|
|
297
|
+
|
|
291
298
|
interface EsmShimCjsSyntaxOptions {
|
|
292
299
|
exclude?: FilterPattern;
|
|
293
300
|
include?: FilterPattern;
|
|
@@ -4537,5 +4544,5 @@ type TransformerFn = ((config: EsbuildPluginConfig | InternalOXCTransformPluginC
|
|
|
4537
4544
|
};
|
|
4538
4545
|
type TransformerName = "esbuild" | "oxc" | "sucrase" | "swc";
|
|
4539
4546
|
|
|
4540
|
-
export { patchTypescriptTypes as
|
|
4541
|
-
export type {
|
|
4547
|
+
export { patchTypescriptTypes as F, resolveTsconfigPathsPlugin as H, sucrasePlugin as V, copyPlugin as b, cjsInteropPlugin as c, dataUriPlugin as d, esmShimCjsSyntaxPlugin as e, removeShebangPlugin as f, getShebang as g, isolatedDeclarationsPlugin as i, jsxRemoveAttributes as j, sourcemapsPlugin as k, license as l, makeExecutable as m, rawPlugin as r, shebangPlugin as s, urlPlugin as u };
|
|
4548
|
+
export type { TsConfigResult as A, PatchTypesOptions as B, CJSInteropOptions as C, DataUriPluginOptions as D, EsmShimCjsSyntaxOptions as E, TsconfigPathsPluginOptions as G, IsolatedDeclarationsOptions as I, JSXRemoveAttributesPlugin as J, OxcResolveOptions as K, LicenseOptions as L, InternalOXCTransformPluginConfig as M, OXCTransformPluginConfig as N, Optimized as O, PailServerType as P, SucrasePluginConfig as Q, RawLoaderOptions as R, ShebangOptions as S, TransformerFn as T, UrlOptions as U, CopyPluginOptions as a, SourcemapsPluginOptions as h, IsolatedDeclarationsResult as n, IsolatedDeclarationsTransformer as o, PackemRollupOptions as p, RollupPlugins as q, TransformerName as t, EsbuildPluginConfig as v, OptimizeDepsOptions as w, OptimizeDepsResult as x, Options$1 as y, SwcPluginConfig as z };
|
|
@@ -288,6 +288,13 @@ type SingleTargetDesc = {
|
|
|
288
288
|
};
|
|
289
289
|
declare const copyPlugin: (options: CopyPluginOptions, logger: PailServerType) => Plugin$1;
|
|
290
290
|
|
|
291
|
+
type DataUriPluginOptions = {
|
|
292
|
+
exclude?: FilterPattern;
|
|
293
|
+
include?: FilterPattern;
|
|
294
|
+
srcset?: boolean;
|
|
295
|
+
};
|
|
296
|
+
declare const dataUriPlugin: (options?: DataUriPluginOptions) => Plugin$1;
|
|
297
|
+
|
|
291
298
|
interface EsmShimCjsSyntaxOptions {
|
|
292
299
|
exclude?: FilterPattern;
|
|
293
300
|
include?: FilterPattern;
|
|
@@ -4537,5 +4544,5 @@ type TransformerFn = ((config: EsbuildPluginConfig | InternalOXCTransformPluginC
|
|
|
4537
4544
|
};
|
|
4538
4545
|
type TransformerName = "esbuild" | "oxc" | "sucrase" | "swc";
|
|
4539
4546
|
|
|
4540
|
-
export { patchTypescriptTypes as
|
|
4541
|
-
export type {
|
|
4547
|
+
export { patchTypescriptTypes as F, resolveTsconfigPathsPlugin as H, sucrasePlugin as V, copyPlugin as b, cjsInteropPlugin as c, dataUriPlugin as d, esmShimCjsSyntaxPlugin as e, removeShebangPlugin as f, getShebang as g, isolatedDeclarationsPlugin as i, jsxRemoveAttributes as j, sourcemapsPlugin as k, license as l, makeExecutable as m, rawPlugin as r, shebangPlugin as s, urlPlugin as u };
|
|
4548
|
+
export type { TsConfigResult as A, PatchTypesOptions as B, CJSInteropOptions as C, DataUriPluginOptions as D, EsmShimCjsSyntaxOptions as E, TsconfigPathsPluginOptions as G, IsolatedDeclarationsOptions as I, JSXRemoveAttributesPlugin as J, OxcResolveOptions as K, LicenseOptions as L, InternalOXCTransformPluginConfig as M, OXCTransformPluginConfig as N, Optimized as O, PailServerType as P, SucrasePluginConfig as Q, RawLoaderOptions as R, ShebangOptions as S, TransformerFn as T, UrlOptions as U, CopyPluginOptions as a, SourcemapsPluginOptions as h, IsolatedDeclarationsResult as n, IsolatedDeclarationsTransformer as o, PackemRollupOptions as p, RollupPlugins as q, TransformerName as t, EsbuildPluginConfig as v, OptimizeDepsOptions as w, OptimizeDepsResult as x, Options$1 as y, SwcPluginConfig as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { b as browserslistToEsbuild } from '../../packem_shared/browserslist-to-esbuild-DY9HwYtp.mjs';
|
|
2
|
-
import { T as TransformerFn } from '../../packem_shared/types-
|
|
3
|
-
export {
|
|
2
|
+
import { T as TransformerFn } from '../../packem_shared/types-BKqesFEF.mjs';
|
|
3
|
+
export { v as EsbuildPluginConfig, w as OptimizeDepsOptions, x as OptimizeDepsResult, O as Optimized, y as Options } from '../../packem_shared/types-BKqesFEF.mjs';
|
|
4
4
|
import '@rollup/plugin-alias';
|
|
5
5
|
import '@rollup/plugin-commonjs';
|
|
6
6
|
import '@rollup/plugin-json';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { b as browserslistToEsbuild } from '../../packem_shared/browserslist-to-esbuild-DY9HwYtp.js';
|
|
2
|
-
import { T as TransformerFn } from '../../packem_shared/types-
|
|
3
|
-
export {
|
|
2
|
+
import { T as TransformerFn } from '../../packem_shared/types-BKqesFEF.js';
|
|
3
|
+
export { v as EsbuildPluginConfig, w as OptimizeDepsOptions, x as OptimizeDepsResult, O as Optimized, y as Options } from '../../packem_shared/types-BKqesFEF.js';
|
|
4
4
|
import '@rollup/plugin-alias';
|
|
5
5
|
import '@rollup/plugin-commonjs';
|
|
6
6
|
import '@rollup/plugin-json';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as OxcResolveOptions, P as PailServerType, T as TransformerFn, k as IsolatedDeclarationsResult } from '../../packem_shared/types-yL82LLIx.mjs';
|
|
2
|
-
export { H as InternalOXCTransformPluginConfig, K as OXCTransformPluginConfig } from '../../packem_shared/types-yL82LLIx.mjs';
|
|
3
|
-
import { Plugin } from 'rollup';
|
|
4
1
|
import { IsolatedDeclarationsOptions } from 'oxc-transform';
|
|
2
|
+
import { n as IsolatedDeclarationsResult, K as OxcResolveOptions, P as PailServerType, T as TransformerFn } from '../../packem_shared/types-BKqesFEF.mjs';
|
|
3
|
+
export { M as InternalOXCTransformPluginConfig, N as OXCTransformPluginConfig } from '../../packem_shared/types-BKqesFEF.mjs';
|
|
4
|
+
import { Plugin } from 'rollup';
|
|
5
5
|
import '@rollup/plugin-alias';
|
|
6
6
|
import '@rollup/plugin-commonjs';
|
|
7
7
|
import '@rollup/plugin-json';
|
|
@@ -19,10 +19,10 @@ import '@visulima/packem-share/types';
|
|
|
19
19
|
import 'oxc-resolver';
|
|
20
20
|
import 'sucrase';
|
|
21
21
|
|
|
22
|
+
declare const isolatedDeclarationsOxcTransformer: (id: string, code: string, sourceMap?: boolean, transformOptions?: Omit<IsolatedDeclarationsOptions, "sourcemap">) => IsolatedDeclarationsResult;
|
|
23
|
+
|
|
22
24
|
declare const oxcResolvePlugin: (options: OxcResolveOptions, rootDirectory: string, logger: PailServerType, tsconfigPath?: string) => Plugin;
|
|
23
25
|
|
|
24
26
|
declare const oxcTransformPlugin: TransformerFn;
|
|
25
27
|
|
|
26
|
-
declare const isolatedDeclarationsOxcTransformer: (id: string, code: string, sourceMap?: boolean, transformOptions?: Omit<IsolatedDeclarationsOptions, "sourcemap">) => IsolatedDeclarationsResult;
|
|
27
|
-
|
|
28
28
|
export { OxcResolveOptions, isolatedDeclarationsOxcTransformer, oxcResolvePlugin, oxcTransformPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { G as OxcResolveOptions, P as PailServerType, T as TransformerFn, k as IsolatedDeclarationsResult } from '../../packem_shared/types-yL82LLIx.js';
|
|
2
|
-
export { H as InternalOXCTransformPluginConfig, K as OXCTransformPluginConfig } from '../../packem_shared/types-yL82LLIx.js';
|
|
3
|
-
import { Plugin } from 'rollup';
|
|
4
1
|
import { IsolatedDeclarationsOptions } from 'oxc-transform';
|
|
2
|
+
import { n as IsolatedDeclarationsResult, K as OxcResolveOptions, P as PailServerType, T as TransformerFn } from '../../packem_shared/types-BKqesFEF.js';
|
|
3
|
+
export { M as InternalOXCTransformPluginConfig, N as OXCTransformPluginConfig } from '../../packem_shared/types-BKqesFEF.js';
|
|
4
|
+
import { Plugin } from 'rollup';
|
|
5
5
|
import '@rollup/plugin-alias';
|
|
6
6
|
import '@rollup/plugin-commonjs';
|
|
7
7
|
import '@rollup/plugin-json';
|
|
@@ -19,10 +19,10 @@ import '@visulima/packem-share/types';
|
|
|
19
19
|
import 'oxc-resolver';
|
|
20
20
|
import 'sucrase';
|
|
21
21
|
|
|
22
|
+
declare const isolatedDeclarationsOxcTransformer: (id: string, code: string, sourceMap?: boolean, transformOptions?: Omit<IsolatedDeclarationsOptions, "sourcemap">) => IsolatedDeclarationsResult;
|
|
23
|
+
|
|
22
24
|
declare const oxcResolvePlugin: (options: OxcResolveOptions, rootDirectory: string, logger: PailServerType, tsconfigPath?: string) => Plugin;
|
|
23
25
|
|
|
24
26
|
declare const oxcTransformPlugin: TransformerFn;
|
|
25
27
|
|
|
26
|
-
declare const isolatedDeclarationsOxcTransformer: (id: string, code: string, sourceMap?: boolean, transformOptions?: Omit<IsolatedDeclarationsOptions, "sourcemap">) => IsolatedDeclarationsResult;
|
|
27
|
-
|
|
28
28
|
export { OxcResolveOptions, isolatedDeclarationsOxcTransformer, oxcResolvePlugin, oxcTransformPlugin };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as a}from"../../packem_shared/
|
|
1
|
+
import{default as a}from"../../packem_shared/isolatedDeclarationsOxcTransformer-WbfE6cGu.mjs";import{default as f}from"../../packem_shared/oxcResolvePlugin-BJpi-eSG.mjs";import{default as s}from"../../packem_shared/oxcTransformPlugin-DfVQouIB.mjs";export{a as isolatedDeclarationsOxcTransformer,f as oxcResolvePlugin,s as oxcTransformPlugin};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@rollup/pluginutils';
|
|
2
2
|
import 'sucrase';
|
|
3
|
-
export {
|
|
3
|
+
export { Q as SucrasePluginConfig, V as sucrasePlugin } from '../../packem_shared/types-BKqesFEF.mjs';
|
|
4
4
|
import '@rollup/plugin-alias';
|
|
5
5
|
import '@rollup/plugin-commonjs';
|
|
6
6
|
import '@rollup/plugin-json';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@rollup/pluginutils';
|
|
2
2
|
import 'sucrase';
|
|
3
|
-
export {
|
|
3
|
+
export { Q as SucrasePluginConfig, V as sucrasePlugin } from '../../packem_shared/types-BKqesFEF.js';
|
|
4
4
|
import '@rollup/plugin-alias';
|
|
5
5
|
import '@rollup/plugin-commonjs';
|
|
6
6
|
import '@rollup/plugin-json';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { n as IsolatedDeclarationsResult, T as TransformerFn } from '../../packem_shared/types-BKqesFEF.mjs';
|
|
2
|
+
export { z as SwcPluginConfig } from '../../packem_shared/types-BKqesFEF.mjs';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -19,8 +19,8 @@ import 'oxc-resolver';
|
|
|
19
19
|
import 'oxc-transform';
|
|
20
20
|
import 'sucrase';
|
|
21
21
|
|
|
22
|
-
declare const _default: TransformerFn;
|
|
23
|
-
|
|
24
22
|
declare const isolatedDeclarationsSwcTransformer: (id: string, code: string, sourceMap?: boolean) => Promise<IsolatedDeclarationsResult>;
|
|
25
23
|
|
|
24
|
+
declare const _default: TransformerFn;
|
|
25
|
+
|
|
26
26
|
export { isolatedDeclarationsSwcTransformer, _default as swcPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { n as IsolatedDeclarationsResult, T as TransformerFn } from '../../packem_shared/types-BKqesFEF.js';
|
|
2
|
+
export { z as SwcPluginConfig } from '../../packem_shared/types-BKqesFEF.js';
|
|
3
3
|
import '@rollup/plugin-alias';
|
|
4
4
|
import '@rollup/plugin-commonjs';
|
|
5
5
|
import '@rollup/plugin-json';
|
|
@@ -19,8 +19,8 @@ import 'oxc-resolver';
|
|
|
19
19
|
import 'oxc-transform';
|
|
20
20
|
import 'sucrase';
|
|
21
21
|
|
|
22
|
-
declare const _default: TransformerFn;
|
|
23
|
-
|
|
24
22
|
declare const isolatedDeclarationsSwcTransformer: (id: string, code: string, sourceMap?: boolean) => Promise<IsolatedDeclarationsResult>;
|
|
25
23
|
|
|
24
|
+
declare const _default: TransformerFn;
|
|
25
|
+
|
|
26
26
|
export { isolatedDeclarationsSwcTransformer, _default as swcPlugin };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as e}from"../../packem_shared/
|
|
1
|
+
import{default as e}from"../../packem_shared/isolatedDeclarationsSwcTransformer-Ch2AgtWC.mjs";import{default as s}from"../../packem_shared/swcPlugin-Boip4lWG.mjs";export{e as isolatedDeclarationsSwcTransformer,s as swcPlugin};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TranspileOptions } from 'typescript';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { n as IsolatedDeclarationsResult, P as PailServerType, A as TsConfigResult } from '../../packem_shared/types-BKqesFEF.mjs';
|
|
3
|
+
export { B as PatchTypesOptions, G as TsconfigPathsPluginOptions, F as patchTypescriptTypes, F as patchTypescriptTypesPlugin, H as resolveTsconfigPathsPlugin } from '../../packem_shared/types-BKqesFEF.mjs';
|
|
4
4
|
import { Plugin } from 'rollup';
|
|
5
5
|
import '@rollup/plugin-alias';
|
|
6
6
|
import '@rollup/plugin-commonjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TranspileOptions } from 'typescript';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { n as IsolatedDeclarationsResult, P as PailServerType, A as TsConfigResult } from '../../packem_shared/types-BKqesFEF.js';
|
|
3
|
+
export { B as PatchTypesOptions, G as TsconfigPathsPluginOptions, F as patchTypescriptTypes, F as patchTypescriptTypesPlugin, H as resolveTsconfigPathsPlugin } from '../../packem_shared/types-BKqesFEF.js';
|
|
4
4
|
import { Plugin } from 'rollup';
|
|
5
5
|
import '@rollup/plugin-alias';
|
|
6
6
|
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.
|
|
3
|
+
"version": "1.0.0-alpha.7",
|
|
4
4
|
"description": "Rollup plugins for packem",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"visulima",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"dist"
|
|
66
66
|
],
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@babel/parser": "7.28.
|
|
68
|
+
"@babel/parser": "7.28.3",
|
|
69
69
|
"@rollup/plugin-alias": "5.1.1",
|
|
70
70
|
"@rollup/plugin-commonjs": "28.0.6",
|
|
71
71
|
"@rollup/plugin-dynamic-import-vars": "2.1.5",
|
|
@@ -78,16 +78,16 @@
|
|
|
78
78
|
"@visulima/find-cache-dir": "1.0.31",
|
|
79
79
|
"@visulima/fs": "3.1.5",
|
|
80
80
|
"@visulima/package": "3.5.8",
|
|
81
|
-
"@visulima/packem-share": "1.0.0-alpha.
|
|
81
|
+
"@visulima/packem-share": "1.0.0-alpha.6",
|
|
82
82
|
"@visulima/path": "1.4.0",
|
|
83
83
|
"@visulima/source-map": "1.0.20",
|
|
84
84
|
"es-module-lexer": "1.7.0",
|
|
85
85
|
"glob-parent": "6.0.2",
|
|
86
86
|
"magic-string": "0.30.17",
|
|
87
87
|
"mlly": "1.7.4",
|
|
88
|
-
"oxc-parser": "0.
|
|
88
|
+
"oxc-parser": "0.82.2",
|
|
89
89
|
"oxc-resolver": "11.6.1",
|
|
90
|
-
"rollup-plugin-dts": "6.2.
|
|
90
|
+
"rollup-plugin-dts": "6.2.3",
|
|
91
91
|
"rollup-plugin-license": "3.6.0",
|
|
92
92
|
"rollup-plugin-polyfill-node": "0.13.0",
|
|
93
93
|
"rollup-plugin-pure": "^0.4.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var f=Object.defineProperty;var o=(e,a)=>f(e,"name",{value:a,configurable:!0});import{createFilter as m}from"@rollup/pluginutils";import{readFile as u}from"@visulima/fs";import{R as g}from"./index-Cj1Okk1t.mjs";var x=Object.defineProperty,r=o((e,a)=>x(e,"name",{value:a,configurable:!0}),"e");const c={quotes:/"/g,urlHexPairs:/%[\dA-F]{2}/g,whitespace:/\s+/g},h=r(e=>{switch(e){case"%2F":return"/";case"%3A":return":";case"%3D":return"=";case"%20":return" ";default:return e.toLowerCase()}},"specialHexEncode"),$=r(e=>e.trim().replaceAll(c.whitespace," "),"collapseWhitespace"),F=r(e=>encodeURIComponent(e).replaceAll(c.urlHexPairs,h),"dataUriPayload"),n=r(e=>{const a=e.startsWith("\uFEFF")?e.slice(1):e,t=$(a).replaceAll(c.quotes,"'");return`data:image/svg+xml,${F(t)}`},"svgToTinyDataUri"),A=r((e={})=>{const a=m(e.include??[/\?data-uri$/],e.exclude);return{async load(t){if(!a(t)||!t.endsWith("?data-uri"))return;const s=t.replace(/\?data-uri$/,"");this.addWatchFile(s);const i=g.getType(s)||"application/octet-stream";if(i==="image/svg+xml"){const l=await u(s,{buffer:!1});return`export default "${e.srcset?n(l).replaceAll(" ","%20"):n(l)}"`}const d=await u(s,{buffer:!0}),p=Buffer.from(d).toString("base64");return`export default "${`${i.startsWith("text/")?`data:${i};charset=utf-8;base64,`:`data:${i};base64,`}${p}`}"`},name:"packem:data-uri"}},"dataUriPlugin");export{A as dataUriPlugin,A as default};
|