MCPcopy Index your code
hub / github.com/ampproject/amphtml / preBuildRuntimeFiles

Function preBuildRuntimeFiles

build-system/server/lazy-build.js:149–153  ·  view source on GitHub ↗

* Pre-builds the core runtime and the JS files that it loads. * @return {Promise }

()

Source from the content-addressed store, hash-verified

147 * @return {Promise<void>}
148 */
149async function preBuildRuntimeFiles() {
150 await build(jsBundles, 'amp.js', (_bundles, _name, options) =>
151 compileCoreRuntime(options)
152 );
153}
154
155/**
156 * Pre-builds default extensions and ones requested via command line flags.

Callers 1

performPreBuildStepsFunction · 0.85

Calls 2

compileCoreRuntimeFunction · 0.85
buildFunction · 0.70

Tested by

no test coverage detected