mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 10:20:15 +01:00
⚙️ chore: Update Build Config due to Windows Tests (#9511)
* chore: remove `rollup-plugin-generate-package-json` * chore: increase maximum file size to cache in Vite configuration for windows builds
This commit is contained in:
parent
035f85c3ba
commit
7de6f6e44c
6 changed files with 2 additions and 249 deletions
|
|
@ -5,7 +5,6 @@ import peerDepsExternal from 'rollup-plugin-peer-deps-external';
|
|||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import replace from '@rollup/plugin-replace';
|
||||
import terser from '@rollup/plugin-terser';
|
||||
import generatePackageJson from 'rollup-plugin-generate-package-json';
|
||||
|
||||
const plugins = [
|
||||
peerDepsExternal(),
|
||||
|
|
@ -21,19 +20,6 @@ const plugins = [
|
|||
terser(),
|
||||
];
|
||||
|
||||
const subfolderPlugins = (folderName) => [
|
||||
...plugins,
|
||||
generatePackageJson({
|
||||
baseContents: {
|
||||
name: `${pkg.name}/${folderName}`,
|
||||
private: true,
|
||||
main: '../index.js',
|
||||
module: './index.es.js', // Adjust to match the output file
|
||||
types: `../types/${folderName}/index.d.ts`, // Point to correct types file
|
||||
},
|
||||
}),
|
||||
];
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'src/index.ts',
|
||||
|
|
@ -83,6 +69,6 @@ export default [
|
|||
// 'librechat-data-provider', // Marking main part as external
|
||||
],
|
||||
preserveSymlinks: true,
|
||||
plugins: subfolderPlugins('react-query'),
|
||||
plugins,
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue