Closed
Description
Description of the feature request
Problem statement
Powertools is packaged as commonJS which does not give the capability to javascript developers to use esmodule import syntax and feature.
Summary of the feature
Now that AWS Lambda support es module import it might worth generating esmodule.
Code examples
Before:
const { Tracer } = require('@aws-lambda-powertools/tracer');
After:
import { Tracer } from '@aws-lambda-powertools/tracer';
Benefits for you and the wider AWS community
See https://aws.amazon.com/blogs/compute/using-node-js-es-modules-and-top-level-await-in-aws-lambda/ for more details ...
Additional context
slack channel discussion
Related issues, RFCs
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped