New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-yoshi

Package Overview
Dependencies
Maintainers
10
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-yoshi

babel 7 preset for yoshi

  • 4.78.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

babel-preset-yoshi

Introduction

Yoshi comes with its own preset for full-stack, client or Node.js projects. It is pre-configured, maintained and tuned for the current state of Yoshi.

Note: There is no need to configure Babel with .babelrc or babel.config.js.

Modes

The preset behaves differently according to the environment. The environment is determined by checking process.env.BABEL_ENV, process.env.NODE_ENV and use development as the default if none was supplied.

  1. NODE_ENV = 'test' - Transpile for current node version for fast testing in mind.

  2. NODE_ENV = 'development' - Transpile for modern browsers for fast builds in mind.

  3. NODE_ENV = 'production' - Optimize bundle, compile for all possible targets from IE10, prepare for uglifycation, with full browsers support, runtime optimization and small bundle size in mind.

Wanna know what's inside?

  • preset-env for ESNext to ES5 transform. Moreover, you can customize current targets and module type to build for. Will use all targets and commonjs module type as a default values. Configured with target node for test environment.
  • preset-react for JSX and Flow transforms.
  • transform-runtime externalize references to helpers and builtins, automatically polyfilling your code without polluting globals.
  • transform-class-properties.
  • transform-decorators (legacy).

Environment specific plugins:

test
development
production

Keywords

FAQs

Package last updated on 19 May 2020

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