Skip to content

🎥 Make videos programmatically with React

enable sourcemaps in lambda

Jonny Burger0b7ff922df35
diff --git a/packages/lambda/src/admin/bundle-lambda.ts b/packages/lambda/src/admin/bundle-lambda.ts
index 6fdd00bc88..07e15ab730 100644
--- a/packages/lambda/src/admin/bundle-lambda.ts
+++ b/packages/lambda/src/admin/bundle-lambda.ts
@@ -33,12 +33,27 @@ const bundleLambda = async () => {
'./ffmpeg/remotion/bin/ffprobe.exe',
'./ffmpeg/remotion/bin/ffmpeg',
'./ffmpeg/remotion/bin/ffmpeg.exe',
+ './mappings.wasm',
],
});
const compositorFile = `${outdir}/compositor`;
fs.copyFileSync(binaryPath, compositorFile);
fs.cpSync(ffmpegCwd, `${outdir}/ffmpeg`, {recursive: true});
+ fs.cpSync(
+ path.join(
+ __dirname,
+ '..',
+ '..',
+ '..',
+ 'renderer',
+ 'node_modules',
+ 'source-map',
+ 'lib',
+ 'mappings.wasm'
+ ),
+ `${outdir}/mappings.wasm`
+ );
await zl.archiveFolder(outdir, FUNCTION_ZIP_ARM64);