nvim/coc/extensions/node_modules/coc-yaml/esbuild.js

19 lines
410 B
JavaScript
Raw Normal View History

2021-03-09 22:18:08 +00: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'],
platform: 'node',
target: 'node10.12',
outfile: 'lib/index.js'
})
}
start().catch(e => {
console.error(e)
})