ES Module Support
MegaSpaceHamlet opened this issue · 1 comments
MegaSpaceHamlet commented
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.
MegaSpaceHamlet commented
import * as multerS3 from 'multer-s3';