()
| 352 | } |
| 353 | |
| 354 | function isMainModule() { |
| 355 | const currentFile = fileURLToPath(import.meta.url) |
| 356 | const entry = process.argv[1] ? path.resolve(process.argv[1]) : '' |
| 357 | return currentFile === entry |
| 358 | } |
| 359 | |
| 360 | if (isMainModule()) { |
| 361 | main().catch(error => { |