MCPcopy
hub / github.com/ampproject/amphtml / transformScript

Function transformScript

build-system/common/update-packages.js:148–152  ·  view source on GitHub ↗

* @param {string} file * @return {string}

(file)

Source from the content-addressed store, hash-verified

146 * @return {string}
147 */
148 function transformScript(file) {
149 // Use the HTMLElement from above.
150 file = file.replace(/\bHTMLElement\b/g, 'HTMLElementOrig');
151 return file;
152 }
153
154 // Relevant DOM polyfills
155 file += transformScript(

Callers 1

patchShadowDomFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected