Socket
Socket
Sign inDemoInstall

@webpack-blocks/babel6

Package Overview
Dependencies
316
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @webpack-blocks/babel6

Webpack block for babel 6+.


Version published
Weekly downloads
653
increased by9.93%
Maintainers
1
Install size
5.82 MB
Created
Weekly downloads
 

Readme

Source

Webpack blocks - Babel 6+

JavaScript Style Guide NPM Version

This is the babel6 block providing Babel (Version 6+) configuration using the babel-loader.

Usage

const { createConfig } = require('@webpack-blocks/webpack')
const babel = require('@webpack-blocks/babel6')

module.exports = createConfig([
  babel(/* options */)
])

Options

exclude (optional)

Regular expression, string or function describing which files/directories to exclude from the babeling. Defaults to /\/node_modules\// regex, like all JS loaders.

include (optional)

Regular expression, string or function used to white-list which files/directories should be babeled. By default exclude is set only.

plugins (optional)

Array of Babel plugins to use. Babel will read them from .babelrc or package.json if omitted.

presets (optional)

Array of Babel presets to use. Babel will read them from .babelrc or package.json if omitted.

Webpack blocks

Check out the

👉 Main Documentation

Released under the terms of the MIT license.

FAQs

Last updated on 06 Feb 2017

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