(build)
| 11 | name: 'esbuild-problem-matcher', |
| 12 | |
| 13 | setup(build) { |
| 14 | build.onStart(() => { |
| 15 | console.log('[watch] build started'); |
| 16 | }); |
| 17 | build.onEnd((result) => { |
| 18 | result.errors.forEach(({ text, location }) => { |
| 19 | console.error(`✘ [ERROR] ${text}`); |
| 20 | console.error(` ${location.file}:${location.line}:${location.column}:`); |
| 21 | }); |
| 22 | console.log('[watch] build finished'); |
| 23 | }); |
| 24 | }, |
| 25 | }; |
| 26 | |
| 27 | /** |