* Builds the compiler.js binary. * * @return {Promise }
()
| 7 | * @return {Promise<void>} |
| 8 | */ |
| 9 | async 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 | } |
| 28 | module.exports = {buildCompiler}; |
no test coverage detected