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

babel-preset-think-node

Package Overview
Dependencies
Maintainers
9
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-think-node

babel plugin preset for thinkjs in node6+

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

babel-preset-think-node

npm

babel plugin preset for ThinkJS 3.x

Included plugins

Install

npm install --save-dev babel-preset-think-node

Usage

.babelrc

{
  "presets": ["think-node"]
}

CLI

babel script.js --presets think-node

Node API

require('babel-core').transform('code', {
  presets: ['think-node']
});

Options

set option for all plugin in object first level, or specific plugin by plugin name.

{
  "presets": [
    ["think-node", {
      "loose": true,
      "transform-es2015-modules-commonjs": {
        "allowTopLevelThis": true
      },
      "transform-runtime": {
        "helpers": false,
        "polyfill": false,
        "regenerator": true,
        "moduleName": "babel-runtime"
      },
      "transform-object-rest-spread": {
        "useBuiltIns": true
      },
      "object-rest-spread": false //set false if you want close this transform plugin
    }]
  ]
}

Keywords

FAQs

Package last updated on 18 Dec 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