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

Function maybeBuild

build-system/tasks/check-sourcemaps.js:23–30  ·  view source on GitHub ↗

* Build runtime with sourcemaps if needed.

()

Source from the content-addressed store, hash-verified

21 * Build runtime with sourcemaps if needed.
22 */
23function maybeBuild() {
24 if (!argv.nobuild) {
25 log('Compiling', cyan('v0.js'), 'with full sourcemaps...');
26 execOrDie(distWithSourcemapsCmd, {'stdio': 'ignore'});
27 log('Compiling', cyan('v0.mjs'), 'with full sourcemaps...');
28 execOrDie(distEsmWithSourcemapsCmd, {'stdio': 'ignore'});
29 }
30}
31
32/**
33 * Verifies that the sourcemap file exists, and returns its contents.

Callers 1

checkSourcemapsFunction · 0.85

Calls 3

cyanFunction · 0.85
execOrDieFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected