* Build runtime with sourcemaps if needed.
()
| 21 | * Build runtime with sourcemaps if needed. |
| 22 | */ |
| 23 | function 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. |
no test coverage detected