MCPcopy Create free account
hub / github.com/ampproject/amphtml / transformSync

Function transformSync

build-system/server/new-server/transforms/transform.ts:34–38  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

32}
33
34export function transformSync(content: string): string {
35 // @ts-ignore We can only use posthtml's sync API in our Karma preprocessor.
36 // See https://github.com/posthtml/posthtml#api
37 return posthtml(transforms).process(content, {sync: true}).html;
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected