()
| 27 | }; |
| 28 | |
| 29 | async function main() { |
| 30 | const ctx = await context({ |
| 31 | entryPoints: ["src/extension.ts"], |
| 32 | bundle: true, |
| 33 | format: "cjs", |
| 34 | minify: production, |
| 35 | sourcemap: !production, |
| 36 | sourcesContent: false, |
| 37 | platform: "node", |
| 38 | outfile: "dist/extension.js", |
| 39 | external: ["vscode"], |
| 40 | logLevel: "silent", |
| 41 | alias: { |
| 42 | "any-observable": "./src/any-observable-fix.ts", |
| 43 | }, |
| 44 | plugins: [ |
| 45 | /* add to the end of plugins array */ |
| 46 | esbuildProblemMatcherPlugin, |
| 47 | ], |
| 48 | }); |
| 49 | if (watch) { |
| 50 | await ctx.watch(); |
| 51 | } else { |
| 52 | await ctx.rebuild(); |
| 53 | await ctx.dispose(); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | main().catch((e) => { |
| 58 | console.error(e); |
no test coverage detected