Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@invisionag/babel-config-ivx

Package Overview
Dependencies
Maintainers
22
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@invisionag/babel-config-ivx

# Description This package provides a baseline configuration for babel as it is being used within our organisation. It adds:

  • 5.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
22
Created
Source

@invisionag/babel-config-ivx

Description

This package provides a baseline configuration for babel as it is being used within our organisation. It adds:

  • env, react, flow and stage-2 presets
  • react-hot-loader, styled-components and dynamic import plugins
  • es5 transformation of module imports for testing

Installation

  1. Make sure you have all the peer dependencies installed in your project:
  • "@babel/core": "^7.8.4",
  • "@babel/preset-env": "^7.8.4",
  • "babel-plugin-dynamic-import-node": "^2.0.7",
  • "babel-preset-flow": "^7.8.3",
  • "babel-preset-react": "^7.8.3",
  • "babel-preset-stage-2": "^7.8.3"
  1. Install @invisionag/babel-config-ivx as a development dependency.

Usage

In your .babelrc.js, you can import this config as base config. You can then extend the baseConfig as desired. A simple example that also adds the lodash and idx plugins would look like this:

const baseConfig = require('@invisionag/babel-config-ivx');
module.exports = {
  ...baseConfig,
  plugins: [
    ...baseConfig.plugins,
    "lodash",
    "idx",
  ],
};

FAQs

Package last updated on 28 Jun 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc