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

Function buildCompiler

build-system/compile/build-compiler.js:9–27  ·  view source on GitHub ↗

* Builds the compiler.js binary. * * @return {Promise }

()

Source from the content-addressed store, hash-verified

7 * @return {Promise<void>}
8 */
9async function buildCompiler() {
10 const startTime = Date.now();
11
12 await esbuild.build({
13 entryPoints: ['src/compiler/index.js'],
14 // Use root-level tsconfig which has path configuration.
15 tsconfig: 'tsconfig.json',
16 outfile: 'dist/compiler.js',
17 bundle: true,
18 define: {
19 IS_PROD: 'true',
20 IS_MINIFIED: 'false',
21 IS_ESM: 'false',
22 IS_SXG: 'false',
23 IS_SSR_CSS: 'false',
24 },
25 });
26 endBuildStep('Compiled', 'compiler.js', startTime);
27}
28module.exports = {buildCompiler};

Callers 1

distFunction · 0.85

Calls 3

endBuildStepFunction · 0.85
nowMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected