platform/dev/doc-import-tool/esbuild.js

12 lines
241 B
JavaScript
Raw Normal View History

const esbuild = require('esbuild')
const fs = require('fs');
fs.mkdirSync('bundle', { recursive: true });
esbuild.build({
entryPoints: ['src/index.ts'],
bundle: true,
minify: true,
platform: 'node',
outfile: 'bundle/bundle.js'
})