Socket
Book a DemoInstallSign in
Socket

@octaive/preset-babel

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octaive/preset-babel

## Installation

latest
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

Octaive Babel Presets

## Installation

yarn add @octaive/preset-babel

Usage

Add the following preset to babel presets

module:@octaive/preset-babel

The following options are available

  • typescript = false - include @babel/preset-typescript
  • frontend = false - include various react related frontend plugins
  • fastRefresh = false - include react fast refresh
  • cacheUsing = () => process.env.NODE_ENV - configure cache function

babel.config.js example

module.exports = (api) => {
  api.cache.using(() => process.env.NODE_ENV);

  return {
    presets: [
      [
        'module:@octaive/preset-babel',
        {
          fastRefresh: true,
          frontend: true,
        },
      ],
    ],
  };
};

FAQs

Package last updated on 17 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts