Skip to content

Commit 1e4704c

Browse files
committed
cleanup
1 parent dc60c79 commit 1e4704c

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

esbuild.mjs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ import * as esbuild from 'esbuild';
44
const watch = process.argv.includes('--watch');
55
const minify = process.argv.includes('--minify');
66

7-
const success = watch ? 'Watch build succeeded' : 'Build succeeded';
8-
9-
function getTime() {
10-
const date = new Date();
11-
return `[${`${padZeroes(date.getHours())}:${padZeroes(date.getMinutes())}:${padZeroes(date.getSeconds())}`}] `;
12-
}
13-
14-
function padZeroes(i) {
15-
return i.toString().padStart(2, '0');
16-
}
17-
187
const ctx = await esbuild.context({
198
// Entry points for the vscode extension and the language server
209
entryPoints: ['src/language/main.ts'],
@@ -34,5 +23,5 @@ if (watch) {
3423
await ctx.watch();
3524
} else {
3625
await ctx.rebuild();
37-
ctx.dispose();
26+
await ctx.dispose();
3827
}

0 commit comments

Comments
 (0)