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

Method serialize

lib/util/registerExternalSerializer.js:103–105  ·  view source on GitHub ↗

* Serializes this instance into the provided serializer context. * @param {ConcatSource} source the concat source to be serialized * @param {ObjectSerializerContext} context context * @returns {void}

(source, { write })

Source from the content-addressed store, hash-verified

101 * @returns {void}
102 */
103 serialize(source, { write }) {
104 write(source.getChildren());
105 }
106
107 /**
108 * Restores this instance from the provided deserializer context.

Callers

nothing calls this directly

Calls 2

writeFunction · 0.85
getChildrenMethod · 0.80

Tested by

no test coverage detected