blob: 2577b3368657a7722cdccad5800bd1c59f9f93d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
async function start() {
await require('esbuild').build({
entryPoints: ['src/index.ts'],
bundle: true,
minify: process.env.NODE_ENV === 'production',
sourcemap: process.env.NODE_ENV === 'development',
mainFields: ['module', 'main'],
external: ['coc.nvim', 'typescript'],
platform: 'node',
target: 'node10.12',
outfile: 'lib/index.js'
})
}
start().catch(e => {
console.error(e)
})
|