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({ await build({
entryPoints: ['src/main.ts'], entryPoints: ['src/main.ts'],
bundle: true, bundle: true,
external:[
'hexo-util',
'hexo'
],
outdir: 'dist', outdir: 'dist',
platform: 'node', platform: 'node',
sourcemap: false, sourcemap: false,