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

bublejs-brunch

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bublejs-brunch

Adds support to transform ES6 to ES5 with Bublé to Brunch.

  • 2.10.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

🚧 This Plugin Is Depreacted 🚧

This plugin is deprecated in favor of buble-brunch.

npm License

bublejs-brunch

Adds support to Brunch to transform ES6 into ES5 with Bublé.

NOTE

See the CHANGELOG for info about the deprecation.

Usage

Installation via npm:

npm i bublejs-brunch -D

Manual install using the GitHub URI in your package.json:

  "bublejs-brunch": "aMarCruz/bublejs-brunch"

Options

In your brunch-config file you can specify the Bublé options.

  ...
  plugins: {
    bublejs: {
      objectAssign: 'assign',   // replace 'assign' with your own function
      target: { ie: 10, safari: 9 }
    }
  }
  ...

By default, the plugin set this options:

objectAssign: "Object.assign"

With this, the plugin includes a polyfill in the code generated by Brunch.

If you set this option, even to "" or "Object assign", the plugin does not includes the polyfill.

dangerousForOf: true

Other options, like target or dangerousTaggedTemplateString must be set explicitly.

The option modules is left as false, so Bublé generates error with the import and export keywords because Brunch does not support ES6 modules (yet).

In addition to the Bublé options you can set pattern and ignore, both anymatch, to include or ignore files.

FAQs

Package last updated on 13 Oct 2017

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