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

sails-hook-babelv7

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-hook-babelv7

Sails JS hook to activate babel 7 for the whole api folder

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

sails-hook-babel

npm version Dependency Status

Needs at least Sails version 0.11.0 to work

Sails JS hook to activate ES6/7 Javascript code for your whole sails app, via https://babeljs.io/.

Installation

npm install sails-hook-babel

Usage

Just lift your app as normal, and enjoy the future of Javascript today. To see what is possible, see: https://babeljs.io/docs/learn-es6/

Configuration

By default, configuration lives in sails.config.babel. The configuration key (babel) can be changed by setting sails.config.hooks['sails-hook-babel'].configKey.

ParameterTypeDetails
compile((boolean))Whether or not sails should compile future JS code. Defaults to true.
polyfill((boolean))Whether or not use babel-polyfill. Defaults to false.
presets((array))Which presets to transpile your code with. Defaults to es2015.

Also you can use other Babel 6 options.

That’s it!

Keywords

FAQs

Package last updated on 28 Sep 2018

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