mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 20:00:15 +01:00
23 lines
No EOL
587 B
Text
23 lines
No EOL
587 B
Text
{
|
|
/*
|
|
a preset is a set of plugins used to support particular language features.
|
|
The two presets Babel uses by default: es2015, react
|
|
*/
|
|
"presets": [
|
|
"@babel/preset-env", //compiling ES2015+ syntax
|
|
"@babel/preset-react" //for react
|
|
],
|
|
/*
|
|
Babel's code transformations are enabled by applying plugins (or presets) to your configuration file.
|
|
*/
|
|
"plugins": [
|
|
"@babel/plugin-transform-runtime",
|
|
[
|
|
"babel-plugin-root-import",
|
|
{
|
|
"rootPathPrefix": "~/",
|
|
"rootPathSuffix": "./src"
|
|
}
|
|
]
|
|
]
|
|
} |