fix(scripts/plugins/hermesc): allow compiling empty code

This commit is contained in:
PalmDevs 2026-01-24 17:51:33 +07:00
parent 9cdf5710d8
commit a899199d43
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -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`