(result)
| 140 | } |
| 141 | |
| 142 | function getInputFiles(result) { |
| 143 | return new Set( |
| 144 | result?.metafile |
| 145 | ? Object.keys(result.metafile.inputs) |
| 146 | .map((key) => (key.includes(':') ? key.split(':')[1] : key)) |
| 147 | .map((key) => (key.startsWith('/') ? key : path.resolve(process.cwd(), key))) |
| 148 | : [] |
| 149 | ) |
| 150 | } |
| 151 | |
| 152 | function getChunks(result) { |
| 153 | const chunks = {} |