Refine build configuration to exclude hexo from bundle.

This commit is contained in:
HPCesia 2024-11-09 12:16:26 +08:00
parent 68115abd81
commit 280c69586f

View File

@ -4,6 +4,10 @@ import { promises as fs } from 'fs';
await build({
entryPoints: ['src/main.ts'],
bundle: true,
external:[
'hexo-util',
'hexo'
],
outdir: 'dist',
platform: 'node',
sourcemap: false,