()
| 24 | } |
| 25 | |
| 26 | async function buildNextjsWrapper() { |
| 27 | const { outputFiles } = await buildTemplate({ |
| 28 | entryPoints: ['./src/edge-function-source/get-edge-function'], |
| 29 | outfile: 'dist/___get-nextjs-edge-function.js', |
| 30 | format: 'cjs', // https://esbuild.github.io/api/#format |
| 31 | write: false, |
| 32 | }); |
| 33 | |
| 34 | assert(outputFiles); |
| 35 | const [src] = outputFiles; |
| 36 | |
| 37 | return outputFile(src.path, `module.exports = ${JSON.stringify(src.text)}`); |
| 38 | } |
| 39 | |
| 40 | module.exports = buildNextjsWrapper; |
nothing calls this directly
no test coverage detected