-
Notifications
You must be signed in to change notification settings - Fork 59
Feature Request: Support for ES Modules #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This code needs to be aware if the package.json has aws-lambda-nodejs-runtime-interface-client/src/utils/UserFunction.ts Lines 70 to 87 in c31c41f
but b/c you use typescript and downlevel everything to commonjs 👎 so it outputs something like const _importDynamic = new Function('modulePath', 'return import(modulePath)')
_importDynamic(path) (Imo i think you should ditch typescript, switch to ESM and not transpile anything - but this is just my opinion) |
This is fixed in #70. |
Afaict, there's no way to use an ES module based hander right now.
It would be awesome to have one less build step. Just wondering if this is on the roadmap?
The text was updated successfully, but these errors were encountered: