anacronw/multer-s3

ES Module Support

MegaSpaceHamlet opened this issue · 1 comments

Hi,

This tool is amazing, exactly what I was looking for.

I was plugging this package into a Typescript project of mine using the ESM import statement and was receiving an error stating that multerS3 is not a function. Upon changing the import statement to a Common JS require statement, the code then compiled and ran.

Is there a reason support for ESM was left out?

I'm happy to make a PR if not.

import * as multerS3 from 'multer-s3';