muxinc / upchunk

Uploads Chunks! Takes big files, splits them up, then uploads each one with care (and PUT requests).
MIT License
340 stars 46 forks source link

Change `createUpload` export to avoid ESBuild bug #114

Closed mmvsk closed 1 year ago

mmvsk commented 1 year ago

Fixes #111 by replacing the export of createUpload from a constant to a function.

When ESBuild with minimize flag, then passed to output, the constants before the class are not passed when exporting its static members as const.

Should be fixed in ESBuild, but this at least fixes UpChunk.