mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-14 11:46:34 +01:00
feat: update package.json and rollup.config.js to include jotai and enhance bundling configuration
This commit is contained in:
parent
412948e025
commit
103af99879
4 changed files with 105 additions and 32 deletions
|
|
@ -21,6 +21,8 @@ const plugins = [
|
|||
}),
|
||||
resolve({
|
||||
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||
browser: true,
|
||||
preferBuiltins: false,
|
||||
}),
|
||||
replace({
|
||||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),
|
||||
|
|
@ -65,7 +67,11 @@ export default {
|
|||
exports: 'named',
|
||||
},
|
||||
],
|
||||
external: [...Object.keys(pkg.peerDependencies || {}), 'react/jsx-runtime'],
|
||||
external: [
|
||||
...Object.keys(pkg.peerDependencies || {}),
|
||||
'react/jsx-runtime',
|
||||
'react/jsx-dev-runtime',
|
||||
],
|
||||
preserveSymlinks: true,
|
||||
plugins,
|
||||
onwarn(warning, warn) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue