(cwd, filename)
| 192 | } |
| 193 | |
| 194 | async function jsOrTs(cwd, filename) { |
| 195 | const extension = (await isFile(resolve(cwd, filename + '.ts'))) |
| 196 | ? '.ts' |
| 197 | : (await isFile(resolve(cwd, filename + '.tsx'))) |
| 198 | ? '.tsx' |
| 199 | : '.js'; |
| 200 | |
| 201 | return resolve(cwd, `${filename}${extension}`); |
| 202 | } |
| 203 | |
| 204 | async function getInput({ entries, cwd, source, module }) { |
| 205 | const input = []; |