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

@kiwicom/babel-preset

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kiwicom/babel-preset

Kiwi.com's official Babel preset.

  • 0.2.5
  • npm
  • Socket score

Version published
Weekly downloads
165
decreased by-38.2%
Maintainers
6
Weekly downloads
 
Created
Source

@kiwicom/babel-preset

Kiwi.com's official Babel preset for our customer-facing apps. Works for Node and Webpack.

Setup

babel.config.js

module.exports = {
  presets: ["@kiwicom"],
};

Contains:

  • TypeScript
  • React
  • Styled components
  • Orbit components

Assumes:

  • absolute paths relative to the ./src (adjustable by babel-plugin-module-resolver)
  • using __DEV__ expressions as a process.env.NODE_ENV check

Configuration

You can adjust the options for @babel/preset-env as follows:

module.exports = {
  presets: [
    [
      "@kiwicom",
      {
        "preset-env": {
          // options accepted by preset-env, for example:
          target: { node: "current" },
        },
      },
    ],
  ],
};

License

MIT

FAQs

Package last updated on 20 Jun 2022

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