@remotion/shapes
Version:
Generate SVG shapes
26 lines (20 loc) • 481 B
text/typescript
import {build} from 'bun';
if (process.env.NODE_ENV !== 'production') {
throw new Error('This script must be run using NODE_ENV=production');
}
const output = await build({
entrypoints: ['src/index.ts'],
naming: '[name].mjs',
external: [
'react/jsx-runtime',
'react',
'react-dom',
'remotion',
'remotion/no-react',
'@remotion/paths',
],
});
const [file] = output.outputs;
const text = await file.text();
await Bun.write('dist/esm/index.mjs', text);
export {};