MCPcopy
hub / github.com/webpack/webpack / serialize

Method serialize

lib/cache/PackFileCacheStrategy.js:74–82  ·  view source on GitHub ↗

* Serializes this instance into the provided serializer context. * @param {ObjectSerializerContext} context context

({ write, writeLazy })

Source from the content-addressed store, hash-verified

72 * @param {ObjectSerializerContext} context context
73 */
74 serialize({ write, writeLazy }) {
75 write(this.version);
76 write(this.buildSnapshot);
77 write(this.buildDependencies);
78 write(this.resolveResults);
79 write(this.resolveBuildDependenciesSnapshot);
80 /** @type {NonNullable<ObjectSerializerContext["writeLazy"]>} */
81 (writeLazy)(this.data);
82 }
83
84 /**
85 * Restores this instance from the provided deserializer context.

Callers

nothing calls this directly

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected