You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting! I am in no means an expert in this area, but from my initial research it seems like switching to ESM is not an option as it would break CJS users (which I would assume is the vast majority of users).
I will have to do further research into an appropriate pollyfill for this use case. PRs and suggestions are welcome!
Description
Currently cdk-nag cannot be used for ESM modules. As I'm using SST as opposed to CDK I get all these
__filename
not supported errors.Use Case
I'm using SST to build a lot of my CDK stacks in order to be more productive while developing and debugging lambdas.
Proposed Solution
This could be fixed in the library with a polyfill or by switching to ESM instead of commonjs.
Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: