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

Method serialize

lib/RawModule.js:167–175  ·  view source on GitHub ↗

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

(context)

Source from the content-addressed store, hash-verified

165 * @param {ObjectSerializerContext} context context
166 */
167 serialize(context) {
168 context
169 .write(this.sourceStr)
170 .write(this.identifierStr)
171 .write(this.readableIdentifierStr)
172 .write(this.runtimeRequirements);
173
174 super.serialize(context);
175 }
176
177 /**
178 * Restores this instance from the provided deserializer context.

Callers

nothing calls this directly

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected