SourceMapMode

class aws_cdk.aws_lambda_nodejs.SourceMapMode(value)

Bases: enum.Enum

SourceMap mode for esbuild.

See

https://esbuild.github.io/api/#sourcemap

Attributes

BOTH

Both sourceMap mode - If you want to have the effect of both inline and external simultaneously.

DEFAULT

Default sourceMap mode - will generate a .js.map file alongside any generated .js file and add a special //# sourceMappingURL= comment to the bottom of the .js file pointing to the .js.map file.

EXTERNAL

External sourceMap mode - If you want to omit the special //# sourceMappingURL= comment from the generated .js file but you still want to generate the .js.map files.

INLINE

Inline sourceMap mode - If you want to insert the entire source map into the .js file instead of generating a separate .js.map file.