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

babel-preset-umeboshi

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-umeboshi

Default Babel preset for Umeboshi

  • 0.4.1-9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-84.37%
Maintainers
1
Weekly downloads
 
Created
Source

babel-preset-umeboshi

Standard Babel preset for Umeboshi templates

This preset includes:

Regenerator transform and generator polyfill are always included in order to support async/await and dynamic imports. If you won't use these features and wish to save some KB you can disable them via preset options.

Install

With npm:

npm install --save-dev babel-preset-umeboshi

Or yarn:

yarn add babel-preset-umeboshi --dev

Usage

Add the preset to .babelrc file in your project's root folder.

{
  "presets": ["umeboshi"]
}

Preset options

Async support for legacy environment

By default both async/await and async import() are supported. Anyway in order to support older environments the preset needs to transpile them to generators and include the related runtime. This will result in an increased bundle size.
If you plan not to use such features, or your target browsers already support them, you can disable transpilation by the following setup:

{
  "presets": [
      ["umeboshi", {
          async: false,
          asyncImport: false
    }]
  ]
}

Custom browserslist query

By default this plugin sets browserslist's support to ['> 0.25%', 'not op_mini all', 'not ie < 11']. If you wish to use a different setup or prefer another source for queries, just set browserslist option to false:

{
  "presets": [
      ["umeboshi", {
          browserslist: false
    }]
  ]
}

Keywords

FAQs

Package last updated on 27 Jun 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