getify / moduloze

Convert CommonJS (CJS) modules to UMD and ESM formats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: if code is empty, throws an error for some reason

getify opened this issue · comments

If you run moduloze on an empty file/files, and the produced output is also empty, this throws as an error (the object { code: "" }) incorrectly.