Socket
Socket
Sign inDemoInstall

babel-preset-think-node

Package Overview
Dependencies
174
Maintainers
8
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-preset-think-node

babel preset for ThinkJS


Version published
Weekly downloads
57
decreased by-32.94%
Maintainers
8
Install size
12.2 MB
Created
Weekly downloads
 

Readme

Source

babel-preset-think-node

npm

babel preset for ThinkJS 3.x, with @babel/preset-env & @babel/plugin-transform-runtime

Install

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

Usage

.babelrc

{
  "presets": ["think-node", {/* @babel/preset-env options */}]
}

CLI

babel script.js --presets think-node

Node API

require('babel-core').transform('code', {
  presets: ['think-node', {/* @babel/preset-env options */}]
});

Options

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

{
  "presets": [
    ["think-node", {
      // @babel/preset-env options
    }]
  ]
}
@babel/preset-env default options
const defaultPresetOptions = {
  targets: { node: '8' },
  modules: 'auto',
  debug: false,
  useBuiltIns: 'usage',
  corejs: 2,
}

Keywords

FAQs

Last updated on 09 Apr 2019

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