All files / lib/config bundling-config.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21    4x                                    
import * as lambda from "aws-cdk-lib/aws-lambda-nodejs";
 
export const commonBundlingOptions: lambda.BundlingOptions = {
  esbuildArgs: {
    "--loader:.png=dataurl": true,
    '--define:window="undefined"': true,
    '--define:document="undefined"': true,
    '--define:navigator="undefined"': true,
    '--define:canvas="undefined"': true,
  },
  define: {
    "global.window": "undefined",
    "global.document": "undefined",
    "global.navigator": "undefined",
    "global.canvas": "undefined",
    __IS_FRONTEND__: "false",
  },
  minify: true,
  sourceMap: true,
};