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

Function serialize

lib/ExternalModule.js:502–507  ·  view source on GitHub ↗
(obj, { write })

Source from the content-addressed store, hash-verified

500 "ModuleExternalInitFragment",
501 {
502 serialize(obj, { write }) {
503 write(obj._request);
504 write(obj._imported);
505 write(obj._ident);
506 write(obj._dependencyMeta);
507 },
508 deserialize({ read }) {
509 return new ModuleExternalInitFragment(read(), read(), read(), read());
510 }

Callers

nothing calls this directly

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected