* Lazy builds a non-extension JS file when requested. * * @param {!Object} req * @param {!Object} _res * @param {function(): void} next * @return {Promise }
(req, _res, next)
| 121 | * @return {Promise<void>} |
| 122 | */ |
| 123 | async function lazyBuildJs(req, _res, next) { |
| 124 | const matcher = argv.esm ? /\/.*\/([^\/]*\.mjs)/ : /\/.*\/([^\/]*\.js)/; |
| 125 | await lazyBuild(req.url, matcher, jsBundles, doBuildJs, next); |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Lazy builds a 3p iframe vendor file when requested. |
nothing calls this directly
no test coverage detected