{
  "version": 3,
  "sources": ["../../../src/fragments/lambda.ts"],
  "sourcesContent": ["import fs from 'fs';\nimport path from 'path';\n\nexport function writeLambda(directory: string, code: string): void {\n  fs.mkdirSync(directory, {recursive: true});\n  fs.writeFileSync(path.join(directory, 'handler.ts'), code);\n\n  const index = `// This file is generated. Do not edit by hand.\n\n// esbuild and otel instrumentations both attempt to use Object.defineProperty\n// to define the \\`handler\\` property transforming ESM to CJS. The workaround is\n// to write the entry point (this file) as CJS.\n// See https://github.com/aws-observability/aws-otel-lambda/issues/99\n// And https://github.com/open-telemetry/opentelemetry-js-contrib/issues/647\n\n// @ts-ignore - tsc sees every function's index.ts as a shared namespace for\n// some reason\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst {handler} = require('./handler.ts');\nexports.handler = handler;\n    `;\n  fs.writeFileSync(path.join(directory, 'index.ts'), index);\n}\n"],
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAAe;AACf,kBAAiB;AAEV,SAAS,YAAY,WAAmB,MAAoB;AACjE,YAAAA,QAAG,UAAU,WAAW,EAAC,WAAW,KAAI,CAAC;AACzC,YAAAA,QAAG,cAAc,YAAAC,QAAK,KAAK,WAAW,YAAY,GAAG,IAAI;AAEzD,QAAM,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcd,YAAAD,QAAG,cAAc,YAAAC,QAAK,KAAK,WAAW,UAAU,GAAG,KAAK;AAC1D;",
  "names": ["fs", "path"]
}
