fix(scripts/plugins/hermesc): allow compiling empty code
This commit is contained in:
parent
9cdf5710d8
commit
a899199d43
1 changed files with 1 additions and 1 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue