| 14 | * @param {import('express').NextFunction} next Next function. | 14 | * @param {import('express').NextFunction} next Next function. |
| 15 | * @type {import('express').RequestHandler} | 15 | * @type {import('express').RequestHandler} |
| 16 | */ | 16 | */ |
| 17 | async function devMiddleware(req, res, next) { | 17 | function devMiddleware(req, res, next) { |
| 18 | if (req.method === 'GET' && path.parse(req.path).base === outputFile) { | 18 | if (req.method === 'GET' && path.parse(req.path).base === outputFile) { |
| 19 | return res.sendFile(outputFile, { root: outputPath }); | 19 | return res.sendFile(outputFile, { root: outputPath }); |
| 20 | } | 20 | } |