LibreChat/client/babel.config.cjs
Danny Avila b3afd562b9
chore: Remove Unused Dependencies 🧹 (#939)
* 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
2023-09-14 15:12:22 -04:00

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',
},
],
],
};