New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@axew/jugg-plugin-babel

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axew/jugg-plugin-babel

A set of babel config.

latest
npmnpm
Version
0.0.8
Version published
Maintainers
1
Created
Source

jugg-plugin-babel

A set of babel config.

config

interface Option {
  // use cache? default true
  cache?: boolean;
  // allow .babelrc? default false
  babelrc?: boolean;
  // more presets
  presets?: PluginCfgSchema[];
  // more plugins
  plugins?: PluginCfgSchema[];
  // use babel to compile ts、tsx, enabling this will clear built-in ts-loader, default false,
  compileTs?: boolean;
  // some options about @babel/preset-env & @babel/plugin-transform-runtime
  juggPreset?: IJuggPreset;
}

interface IJuggPreset {
  // https://babeljs.io/docs/en/babel-preset-env
  useBuiltIns?: string | boolean;
  loose?: boolean;
  targets?: {
    browsers: string[];
    [k: string]: any;
  };
  modules?: string | boolean;
  // rest options of `@babel/preset-env`
  env?: {
    [k: string]: any;
  };
  // https://babeljs.io/docs/en/babel-plugin-transform-runtime
  transformRuntime?: {
    [k: string]: any;
  };
}

FAQs

Package last updated on 28 Jun 2019

Related posts