Commit 280c695

HPCesia <me@hpcesia.com>
2024-11-09 04:16:26
Refine build configuration to exclude hexo from bundle.
1 parent 68115ab
Changed files (1)
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,