Socket
Socket
Sign inDemoInstall

@invisionag/babel-config-ivx

Package Overview
Dependencies
127
Maintainers
22
Versions
67
Alerts
File Explorer

Advanced tools

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:


Version published
Weekly downloads
5
decreased by-92.31%
Maintainers
22
Install size
8.61 MB
Created
Weekly downloads
 

Readme

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

Last updated on 28 Jun 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc