UNPKG

mes-engine

Version:

A powerful and flexible video processing framework for Node.js with support for multiple processing engines, adaptive streaming, and intelligent caching.

26 lines (25 loc) 924 B
import typescript from '@rollup/plugin-typescript'; import { nodeResolve } from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; import peerDepsExternal from 'rollup-plugin-peer-deps-external'; import json from '@rollup/plugin-json'; export default { input: 'src/index.ts', // Entry point output: [ { file: 'dist/index.js', // Output file format: 'es', // ES module format sourcemap: true, // Enable source maps }, ], plugins: [ json(), // Handle JSON imports peerDepsExternal(), // Externalize peer dependencies nodeResolve(), // Resolve dependencies from node_modules commonjs(), // Convert CommonJS to ES6 typescript({ tsconfig: './tsconfig.json' }), // TypeScript plugin ], external: [ 'node-fetch', // Prevent bundling node-fetch ], };