@markless/bundler 0.2.1 → 0.3.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.
@@ -1,7 +1,14 @@
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-CzXV_ABj.js";
2
- import { n as resumeVirtualModuleId, t as MARKLESS_VIRTUAL_PREFIX } from "./source-module-BRb5P7wL.js";
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-BuooJg32.js";
2
+ import { i as resumeVirtualModuleId, n as prerenderWakeVirtualModuleId, t as MARKLESS_VIRTUAL_PREFIX } from "./source-module-XFgOFX1c.js";
3
+ import { ProtocolStatePayload, ProtocolViewPayload } from "@markless/serializer";
3
4
  import { OutputOptions, Plugin } from "rolldown";
4
5
 
6
+ //#region src/build/prerender.d.ts
7
+ type BuiltPrerenderRecords = {
8
+ readonly state: ProtocolStatePayload;
9
+ readonly view: ProtocolViewPayload;
10
+ };
11
+ //#endregion
5
12
  //#region src/build/chunking.d.ts
6
13
  declare const MARKLESS_BUILD_PREFIX = "build/";
7
14
  declare const MARKLESS_BUNDLE_GRAPH = "build/bundle-graph.json";
@@ -74,6 +81,7 @@ declare const marklessLib: (options?: MarklessRolldownOptions) => MarklessRolldo
74
81
  declare function createMarklessRolldownPlugin(input: {
75
82
  environment: Environment;
76
83
  options?: MarklessRolldownOptions;
84
+ prerenderRecordsBySource?: ReadonlyMap<string, BuiltPrerenderRecords>;
77
85
  }): MarklessRolldownPlugin;
78
86
  //#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 };
87
+ 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, prerenderWakeVirtualModuleId, resumeVirtualModuleId, transformTsrxModule };
package/dist/rolldown.js CHANGED
@@ -1,3 +1,3 @@
1
- import { b as MARKLESS_BUNDLE_GRAPH, o as resumeVirtualModuleId, t as MARKLESS_VIRTUAL_PREFIX, x as outputDefaults, y as MARKLESS_BUILD_PREFIX } from "./source-module-C8W2THUI.js";
2
- import { c as collectHeadLinkInjections, i as marklessServer, l as convertManifestToBundleGraph, n as marklessClient, o as transformTsrxModule, r as marklessLib, s as createBuildMetadata, t as createMarklessRolldownPlugin, u as createPreloadGraphAdder } from "./rolldown-CpG_S-ZJ.js";
3
- export { MARKLESS_BUILD_PREFIX, MARKLESS_BUNDLE_GRAPH, MARKLESS_VIRTUAL_PREFIX, collectHeadLinkInjections, convertManifestToBundleGraph, createBuildMetadata, createMarklessRolldownPlugin, createPreloadGraphAdder, marklessClient, marklessLib, marklessServer, outputDefaults, resumeVirtualModuleId, transformTsrxModule };
1
+ import { l as resumeVirtualModuleId, s as prerenderWakeVirtualModuleId, t as MARKLESS_VIRTUAL_PREFIX } from "./source-module-BCEdLQvG.js";
2
+ import { a as createBuildMetadata, c as collectHeadLinkInjections, d as outputDefaults, f as convertManifestToBundleGraph, i as marklessServer, l as MARKLESS_BUILD_PREFIX, n as marklessClient, p as createPreloadGraphAdder, r as marklessLib, s as transformTsrxModule, t as createMarklessRolldownPlugin, u as MARKLESS_BUNDLE_GRAPH } from "./rolldown-DAsY_7V1.js";
3
+ export { MARKLESS_BUILD_PREFIX, MARKLESS_BUNDLE_GRAPH, MARKLESS_VIRTUAL_PREFIX, collectHeadLinkInjections, convertManifestToBundleGraph, createBuildMetadata, createMarklessRolldownPlugin, createPreloadGraphAdder, marklessClient, marklessLib, marklessServer, outputDefaults, prerenderWakeVirtualModuleId, resumeVirtualModuleId, transformTsrxModule };