From a899199d4316655681302f1d62f0339c8b7808c6 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sat, 24 Jan 2026 17:51:33 +0700 Subject: [PATCH] fix(scripts/plugins/hermesc): allow compiling empty code --- scripts/plugins/hermesc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/plugins/hermesc.ts b/scripts/plugins/hermesc.ts index 3f1d08b..8dbd43b 100644 --- a/scripts/plugins/hermesc.ts +++ b/scripts/plugins/hermesc.ts @@ -35,7 +35,7 @@ export default function hermesCPlugin({ if (before) before(ver) const file = bundle['revenge.js'] as OutputChunk - if (!file || !file.code) throw new Error('No code to compile') + if (!file) throw new Error('No code to compile') // TODO(scripts/build): Remove this when we have a better way to add sourceURL file.code += `//# sourceURL=Revenge`