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

@proof-ui/babel-plugin

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@proof-ui/babel-plugin

A plugin to enable babel as a test preprocessor, allowing the use of ES6/ESNext features while authoring. The default configuration uses `@babel/preset-env`

  • 0.1.5-canary.efb04f2.0
  • canary
  • npm
  • Socket score

Version published
Weekly downloads
245
decreased by-8.24%
Maintainers
2
Weekly downloads
 
Created
Source

@proof-ui/babel-plugin

A plugin to enable babel as a test preprocessor, allowing the use of ES6/ESNext features while authoring. The default configuration uses @babel/preset-env

Installation

yarn add -D @proof-ui/babel-plugin

Usage

// proof.config.js
import BabelPlugin from '@proof-ui/babel-plugin';

export default {
  plugins: [
    new BabelPlugin({
      // Optional Configuration
    })
  ]
};

Options

You can configure the babel-plugin through some options in it's constructor:

PropertyDescriptionTypeDefault
configA babel configuration object to use when transpiling testsobject

Example

To enable typescript support in your tests

import BabelPlugin from '@proof-ui/babel-plugin';

new BabelPlugin({
  config: {
    extensions: ['.js', '.jsx', '.ts', '.tsx'],
    presets: ['@babel/preset-env', '@babel/preset-typescript']
  }
});

FAQs

Package last updated on 20 Aug 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

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