🎥 Make videos programmatically with React
import {build} from 'bun';
const output = await build({
entrypoints: ['src/index.ts'],
naming: '[name].mjs',
});
const [file] = output.outputs;
const text = (await file.text())
.replace(/jsxDEV/g, 'jsx')
.replace(/react\/jsx-dev-runtime/g, 'react/jsx-runtime');
await Bun.write('dist/esm/index.mjs', text);
export {};