()
| 43 | }; |
| 44 | |
| 45 | const watch = async () => { |
| 46 | try { |
| 47 | console.log('👀 Starting watch mode for ESM bundle...'); |
| 48 | const ctx = await esbuild.context(createBuildConfig('esm')); |
| 49 | await ctx.watch(); |
| 50 | console.log('✅ Watch mode active - listening for changes...'); |
| 51 | } catch (error) { |
| 52 | console.error('❌ Watch mode failed:', error); |
| 53 | process.exit(1); |
| 54 | } |
| 55 | }; |
| 56 | |
| 57 | // Check command line arguments |
| 58 | const args = process.argv.slice(2); |
no test coverage detected