mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00

* modify tsconfig and set up unit tests * generate .d.ts files * setup project dependencies and configuration for unit tests * Add test setup and layout-test-utils along with first spec * Add paths back to tsconfig * remove type=module from package.json * Add typescript definition for .env * update package-lock
23 lines
652 B
JavaScript
23 lines
652 B
JavaScript
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"
|
|
}
|
|
]
|
|
]
|
|
}
|