🚀 DAY 3 OF LAUNCH WEEK: Introducing Webhook Events for Pull Request Scans.Learn more →
Socket
Book a DemoInstallSign in
Socket

@mrbuilder/plugin-babel

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mrbuilder/plugin-babel

Tools for developing babel with mrbuilder

latest
npmnpm
Version
4.4.7-alpha.9
Version published
Maintainers
3
Created
Source

This plugin provides babel support to mrbuilder. It allows for configuration via .babelrc or via normal mrbuilder configuration methods. It also provides support for babel to webpack via babel-loader

The default babel configuration:

PropertyTypeDefaultDescription
hotboolfalseTurns hot loading supoprt for hmr usually automatically
testregex/.jsx?$/Webpack module test to transpile
includesarrayOf: string,regex./src,./public,./testWebpack module includes option
useobject{use:{loader:'babel-loader}}Allows for a different babel-loader
<babel_plugin>objectconfigure babel plugins
cacheDirectorybool or stringtrueuse the cache directory to speed up builds.

To use Babel 7 will need to set the babelVersion to 7 and include the mrbuilder-plugin-babel-7 plugin in your configuration, and you should exclude the mrbuilder-plugin-babel-6 while your at it

{
  mrbuilder:{
    "plugins": [
      "mrbuilder-plugin-babel-7"
    ]
  }
}


FAQs

Package last updated on 25 Oct 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