@markless/bundler 0.1.0
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/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/preload.d.ts +79 -0
- package/dist/preload.js +75 -0
- package/dist/rolldown-Czh1duwk.js +1802 -0
- package/dist/rolldown.d.ts +79 -0
- package/dist/rolldown.js +3 -0
- package/dist/source-module-BRb5P7wL.d.ts +6 -0
- package/dist/source-module-CSRzW4Ny.js +876 -0
- package/dist/types-D6KerlYq.d.ts +107 -0
- package/dist/vite.d.ts +12 -0
- package/dist/vite.js +387 -0
- package/package.json +55 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { _ as TransformTsrxModuleInput, a as MarklessBundle, c as MarklessEnvironment, d as MarklessRolldownPluginApi, f as MarklessTransformManifest, g as PreloadGraphEntriesAdder, h as PreloadGraphEntries, i as MarklessBuildMetadata, l as MarklessManifest, m as PreloadGraphContext, n as GlobalInjections, o as MarklessBundleGraph, p as MarklessVirtualModule, r as MarklessAsset, s as MarklessDevServer, t as BundleGraphAdder, u as MarklessRolldownOptions, v as TransformTsrxModuleResult } from "./types-D6KerlYq.js";
|
|
2
|
+
import { n as resumeVirtualModuleId, t as MARKLESS_VIRTUAL_PREFIX } from "./source-module-BRb5P7wL.js";
|
|
3
|
+
import { OutputOptions, Plugin } from "rolldown";
|
|
4
|
+
|
|
5
|
+
//#region src/build/chunking.d.ts
|
|
6
|
+
declare const MARKLESS_BUILD_PREFIX = "build/";
|
|
7
|
+
declare const MARKLESS_BUNDLE_GRAPH = "build/bundle-graph.json";
|
|
8
|
+
declare function outputDefaults(output: OutputOptions, environment: MarklessEnvironment): OutputOptions;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/build/build-metadata.d.ts
|
|
11
|
+
type MarklessBuildMetadataBundle = Record<string, MarklessBuildMetadataBundleItem>;
|
|
12
|
+
type MarklessBuildMetadataBundleItem = MarklessBuildMetadataAsset | MarklessBuildMetadataChunk;
|
|
13
|
+
interface MarklessBuildMetadataAsset {
|
|
14
|
+
type: 'asset';
|
|
15
|
+
fileName: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
names?: string[];
|
|
18
|
+
source: string | Uint8Array;
|
|
19
|
+
}
|
|
20
|
+
interface MarklessBuildMetadataChunk {
|
|
21
|
+
type: 'chunk';
|
|
22
|
+
fileName: string;
|
|
23
|
+
name: string;
|
|
24
|
+
code: string;
|
|
25
|
+
exports: string[];
|
|
26
|
+
imports: string[];
|
|
27
|
+
dynamicImports: string[];
|
|
28
|
+
moduleIds: string[];
|
|
29
|
+
facadeModuleId?: string | null;
|
|
30
|
+
viteMetadata?: {
|
|
31
|
+
importedCss?: ReadonlySet<string> | readonly string[];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
declare function createBuildMetadata(bundle: MarklessBuildMetadataBundle, transformManifests: Iterable<MarklessTransformManifest>, root: string | undefined, options?: {
|
|
35
|
+
bundleGraphAsset?: string;
|
|
36
|
+
bundleGraphAdders?: Set<BundleGraphAdder>;
|
|
37
|
+
canonPath?: (fileName: string) => string;
|
|
38
|
+
publicPath?: (fileName: string) => string;
|
|
39
|
+
injections?: GlobalInjections[];
|
|
40
|
+
}): MarklessBuildMetadata;
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/build/bundle-graph.d.ts
|
|
43
|
+
declare function convertManifestToBundleGraph(manifest: MarklessBuildMetadata, bundleGraphAdders?: Set<BundleGraphAdder>): MarklessBundleGraph;
|
|
44
|
+
declare function createPreloadGraphAdder(addEntries: PreloadGraphEntriesAdder): BundleGraphAdder;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/build/head-links.d.ts
|
|
47
|
+
type HeadLinkBundle = Record<string, HeadLinkBundleItem>;
|
|
48
|
+
type HeadLinkBundleItem = HeadLinkAsset | HeadLinkChunk;
|
|
49
|
+
interface HeadLinkAsset {
|
|
50
|
+
type: 'asset';
|
|
51
|
+
fileName: string;
|
|
52
|
+
}
|
|
53
|
+
interface HeadLinkChunk {
|
|
54
|
+
type: 'chunk';
|
|
55
|
+
viteMetadata?: {
|
|
56
|
+
importedCss?: ReadonlySet<string> | readonly string[];
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
declare function collectHeadLinkInjections(bundle: HeadLinkBundle, options?: {
|
|
60
|
+
publicPath?: (fileName: string) => string;
|
|
61
|
+
}): GlobalInjections[];
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/transform.d.ts
|
|
64
|
+
declare function transformTsrxModule(input: TransformTsrxModuleInput): Promise<TransformTsrxModuleResult>;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/rolldown.d.ts
|
|
67
|
+
type Environment = MarklessEnvironment | ((context: unknown) => MarklessEnvironment);
|
|
68
|
+
type MarklessRolldownPlugin = Plugin & {
|
|
69
|
+
api: MarklessRolldownPluginApi;
|
|
70
|
+
};
|
|
71
|
+
declare const marklessClient: (options?: MarklessRolldownOptions) => MarklessRolldownPlugin;
|
|
72
|
+
declare const marklessServer: (options?: MarklessRolldownOptions) => MarklessRolldownPlugin;
|
|
73
|
+
declare const marklessLib: (options?: MarklessRolldownOptions) => MarklessRolldownPlugin;
|
|
74
|
+
declare function createMarklessRolldownPlugin(input: {
|
|
75
|
+
environment: Environment;
|
|
76
|
+
options?: MarklessRolldownOptions;
|
|
77
|
+
}): MarklessRolldownPlugin;
|
|
78
|
+
//#endregion
|
|
79
|
+
export { type BundleGraphAdder, type GlobalInjections, MARKLESS_BUILD_PREFIX, MARKLESS_BUNDLE_GRAPH, MARKLESS_VIRTUAL_PREFIX, type MarklessAsset, type MarklessBuildMetadata, type MarklessBundle, type MarklessBundleGraph, type MarklessDevServer, type MarklessEnvironment, type MarklessManifest, type MarklessRolldownOptions, MarklessRolldownPlugin, type MarklessRolldownPluginApi, type MarklessTransformManifest, type MarklessVirtualModule, type PreloadGraphContext, type PreloadGraphEntries, type PreloadGraphEntriesAdder, type TransformTsrxModuleInput, type TransformTsrxModuleResult, collectHeadLinkInjections, convertManifestToBundleGraph, createBuildMetadata, createMarklessRolldownPlugin, createPreloadGraphAdder, marklessClient, marklessLib, marklessServer, outputDefaults, resumeVirtualModuleId, transformTsrxModule };
|
package/dist/rolldown.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as resumeVirtualModuleId, b as outputDefaults, t as MARKLESS_VIRTUAL_PREFIX, v as MARKLESS_BUILD_PREFIX, y as MARKLESS_BUNDLE_GRAPH } from "./source-module-CSRzW4Ny.js";
|
|
2
|
+
import { a as transformTsrxModule, c as convertManifestToBundleGraph, i as marklessServer, l as createPreloadGraphAdder, n as marklessClient, o as createBuildMetadata, r as marklessLib, s as collectHeadLinkInjections, t as createMarklessRolldownPlugin } from "./rolldown-Czh1duwk.js";
|
|
3
|
+
export { MARKLESS_BUILD_PREFIX, MARKLESS_BUNDLE_GRAPH, MARKLESS_VIRTUAL_PREFIX, collectHeadLinkInjections, convertManifestToBundleGraph, createBuildMetadata, createMarklessRolldownPlugin, createPreloadGraphAdder, marklessClient, marklessLib, marklessServer, outputDefaults, resumeVirtualModuleId, transformTsrxModule };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/source-module.d.ts
|
|
2
|
+
declare const MARKLESS_VIRTUAL_PREFIX = "virtual:markless:";
|
|
3
|
+
declare function symbolVirtualModuleSourceFile(moduleId: string): string | null;
|
|
4
|
+
declare function resumeVirtualModuleId(filename: string): string;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { resumeVirtualModuleId as n, symbolVirtualModuleSourceFile as r, MARKLESS_VIRTUAL_PREFIX as t };
|