The version string for the Babel version that is loading the config file.
While api.version
can be useful in general, it's sometimes nice to just declare your version.
This API exposes a simple way to do that with:
This API is used as a way to access the caller
data that has been passed to Babel.
Since many instances of Babel may be running in the same process with different caller
values,
this API is designed to automatically configure api.cache
, the same way api.env()
does.
The caller
value is available as the first parameter of the callback function.
It is best used with something like this to toggle configuration behavior
based on a specific environment:
https://babeljs.io/docs/en/next/config-files#config-function-api