coc-tsserver/esbuild.js

19 lines
424 B
JavaScript
Raw Normal View History

2021-01-06 18:42:01 +09:00
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)
})