Skip to content

🎥 Make videos programmatically with React

remove the smell

Igor Samokhovetsfe25752c066f
diff --git a/packages/studio/bundle.ts b/packages/studio/bundle.ts
index 3b11305e7e..c214bd70c1 100644
--- a/packages/studio/bundle.ts
+++ b/packages/studio/bundle.ts
@@ -1,4 +1,3 @@
-import {copyFileSync, existsSync} from 'fs';
import {buildPackage} from '../.monorepo/builder';
const external = [
@@ -52,10 +51,3 @@ await buildPackage({
},
],
});
-
-// Mirror the ESM worker asset next to the CJS helper so consumers that
-// resolve `@remotion/studio` via CJS can still locate the worker entry.
-const esmWorker = 'dist/esm/audio-waveform-worker.mjs';
-if (existsSync(esmWorker)) {
- copyFileSync(esmWorker, 'dist/audio-waveform-worker.mjs');
-}