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

babel-preset-o

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-o

tiny and flexible babel preset

  • 0.4.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

babel-preset-o

tiny and flexible babel preset

cover basic usage for react development

Usage

npm i -D babel-preset-o

babel.config.js

module.exports = {
  presets: ['babel-preset-o']  
}

Options

Use this preset with customized options to extend flexibility of compilation.

targets

Default is undefined. Ref to babel-preset-env#targets

modules

Default is false, ref to babel-preset-env#modules

useBuiltIns

Default is false, ref to babel-preset-env#usebuiltins

runtime

Default is 'classic', Ref to babel-preset-react#runtime

Example

transform code to commonjs

// babel.config.js
module.exports = {
  presets: [
    ['babel-preset-o', { modules: 'commonjs' }]
  ]  
}

transform all code to es5

// babel.config.js
module.exports = {
  presets: [
    ['babel-preset-o', { targets: {} }]
  ]  
}

FAQs

Package last updated on 11 Nov 2021

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