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

Function doCompileJs

build-system/tasks/helpers.js:553–559  ·  view source on GitHub ↗

* Actually performs the steps to compile the entry point. * @param {object} options * @return {Promise }

(options)

Source from the content-addressed store, hash-verified

551 * @return {Promise<void>}
552 */
553 async function doCompileJs(options) {
554 const buildResult = esbuildCompile(srcDir, srcFilename, destDir, options);
555 if (options.onWatchBuild) {
556 options.onWatchBuild(buildResult);
557 }
558 await buildResult;
559 }
560
561 await doCompileJs(options);
562}

Callers 2

watchFuncFunction · 0.85
compileJsFunction · 0.85

Calls 1

esbuildCompileFunction · 0.85

Tested by

no test coverage detected