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