Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/aws-serverless/rollup.aws.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default [
// We only need one copy of the SDK, and we pick the minified one because there's a cap on how big a lambda function
// plus its dependencies can be, and we might as well take up as little of that space as is necessary. We'll rename
// it to be `index.js` in the build script, since it's standing in for the index file of the npm package.
{ variants: ['.min.js'] },
{ variants: ['.debug.min.js'] },
),
makeBaseNPMConfig({
entrypoints: ['src/awslambda-auto.ts'],
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-serverless/scripts/buildLambdaLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function buildLambdaLayer(): Promise<void> {
// We build a minified bundle, but it's standing in for the regular `index.js` file listed in `package.json`'s `main`
// property, so we have to rename it so it's findable.
fs.renameSync(
'build/aws/dist-serverless/nodejs/node_modules/@sentry/aws-serverless/build/npm/cjs/index.min.js',
'build/aws/dist-serverless/nodejs/node_modules/@sentry/aws-serverless/build/npm/cjs/index.debug.min.js',
'build/aws/dist-serverless/nodejs/node_modules/@sentry/aws-serverless/build/npm/cjs/index.js',
);

Expand Down
Loading