-
Notifications
You must be signed in to change notification settings - Fork 162
Closed
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilityloggerThis item relates to the Logger UtilityThis item relates to the Logger UtilitymetricsThis item relates to the Metrics UtilityThis item relates to the Metrics UtilitytracerThis item relates to the Tracer UtilityThis item relates to the Tracer Utility
Milestone
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
ijemmy, dreamorosi, HansFalkenberg-Visma, elthrasher, saragerion and 20 moremichaelbrewer, ibrahimcesar, JannikWempe, bestickley, borgoat and 1 more
Metadata
Metadata
Assignees
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilityloggerThis item relates to the Logger UtilityThis item relates to the Logger UtilitymetricsThis item relates to the Metrics UtilityThis item relates to the Metrics UtilitytracerThis item relates to the Tracer UtilityThis item relates to the Tracer Utility
Type
Projects
Status
Shipped