Enterprise-CMCS/macpro-mako

View on GitHub
lib/config/bundling-config.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
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,
};