From 280c69586ffb6c11b6ca827f81f198cda01b73ad Mon Sep 17 00:00:00 2001 From: HPCesia Date: Sat, 9 Nov 2024 12:16:26 +0800 Subject: [PATCH] Refine build configuration to exclude hexo from bundle. --- build.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.mjs b/build.mjs index 812d44b..a63b782 100644 --- a/build.mjs +++ b/build.mjs @@ -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,