mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00

* chore: cleanup client depend 🧹
* chore: replace joi with zod and remove unused user validator
* chore: move dep from root to api, cleanup other unused api deps
* chore: remove unused dev dep
* chore: update bun lockfile
* fix: bun scripts
* chore: add bun flag to update script
* chore: remove legacy webpack + babel dev deps
* chore: add back dev deps needed for frontend unit testing
* fix(validators): make schemas as expected and more robust with a full test suite of edge cases
* chore: remove axios from root package, remove path from api, update bun
28 lines
708 B
JavaScript
28 lines
708 B
JavaScript
/*
|
|
|
|
babel is used for frontend unit testing
|
|
|
|
*/
|
|
module.exports = {
|
|
presets: [
|
|
['@babel/preset-env', { 'targets': { 'node': 'current' } }], //compiling ES2015+ syntax
|
|
['@babel/preset-react', { runtime: 'automatic' }],
|
|
'@babel/preset-typescript',
|
|
],
|
|
/*
|
|
Babel's code transformations are enabled by applying plugins (or presets) to your configuration file.
|
|
*/
|
|
plugins: [
|
|
'@babel/plugin-transform-runtime',
|
|
'babel-plugin-transform-import-meta',
|
|
'babel-plugin-transform-vite-meta-env',
|
|
'babel-plugin-replace-ts-export-assignment',
|
|
[
|
|
'babel-plugin-root-import',
|
|
{
|
|
'rootPathPrefix': '~/',
|
|
'rootPathSuffix': './src',
|
|
},
|
|
],
|
|
],
|
|
};
|