You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
555 B
24 lines
555 B
const { build } = require("esbuild")
|
|
|
|
build({
|
|
entryPoints: ['./src/extension.ts'],
|
|
format: 'cjs',
|
|
bundle: true,
|
|
outfile: "out/extension.js",
|
|
platform: 'node',
|
|
logLevel: 'error',
|
|
metafile: true,
|
|
sourcemap:'external',
|
|
sourceRoot:__dirname,
|
|
minify:false,
|
|
watch:false,
|
|
external: ['vscode', 'pg-native', 'cardinal', 'aws4', 'mongodb-client-encryption'],
|
|
plugins: [
|
|
{
|
|
name: 'build notice',
|
|
setup(build) {
|
|
console.log('build')
|
|
},
|
|
},
|
|
],
|
|
})
|