mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
26 lines
601 B
JavaScript
26 lines
601 B
JavaScript
|
|
import json from '@rollup/plugin-json';
|
||
|
|
import typescript from '@rollup/plugin-typescript';
|
||
|
|
import commonjs from '@rollup/plugin-commonjs';
|
||
|
|
|
||
|
|
export default {
|
||
|
|
input: 'src/index.ts',
|
||
|
|
output: [
|
||
|
|
{
|
||
|
|
file: 'dist/index.cjs', // Changed from index.js to index.cjs
|
||
|
|
format: 'cjs',
|
||
|
|
sourcemap: true,
|
||
|
|
exports: 'named',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
file: 'dist/index.es.js',
|
||
|
|
format: 'esm',
|
||
|
|
sourcemap: true,
|
||
|
|
exports: 'named',
|
||
|
|
},
|
||
|
|
],
|
||
|
|
plugins: [json(), commonjs(), typescript({ tsconfig: './tsconfig.json' })],
|
||
|
|
external: [
|
||
|
|
// list your external dependencies
|
||
|
|
],
|
||
|
|
};
|