berenddeboer / cdk-rds-sql

A CDK construct that allows creating roles and databases an on Aurora Serverless Postgresql cluster.
Apache License 2.0
23 stars 11 forks source link

Enable source map support in Node #9

Closed moltar closed 6 months ago

moltar commented 1 year ago

This bundle source:

https://github.com/berenddeboer/cdk-rds-sql/blob/2ee7dd1e969bb7b0d7291faa0d6b66f49c34498b/src/provider.ts#L68

Another good option to have is:

sourcesContent: false,

And finally, this flag needs to be set to activate the source map output in the log:

fn.addEnvironment('NODE_OPTIONS', '--enable-source-maps')

Otherwise, error stack does not output the right refs.

See #8 for an example of the error message.