## Installation
yarn add @octaive/preset-babel
Add the following preset to babel presets
module:@octaive/preset-babel
The following options are available
typescript = false
- include @babel/preset-typescriptfrontend = false
- include various react related frontend pluginsfastRefresh = false
- include react fast refreshcacheUsing = () => process.env.NODE_ENV
- configure cache function
module.exports = (api) => {
api.cache.using(() => process.env.NODE_ENV);
return {
presets: [
[
'module:@octaive/preset-babel',
{
fastRefresh: true,
frontend: true,
},
],
],
};
};