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

@bigbinary/babel-preset-neeto

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bigbinary/babel-preset-neeto

A babel preset to transform short code to boilerplate at compile time

  • 1.0.8
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

babel-preset-neeto

A babel transformer to minimize boilerplate code in neeto products.

Usage

babel-preset-neeto is designed in an assumption that it will be run before all other presets or plugins. To make that possible, you need to add @bigbinary/neeto towards the end of your presets array in babel.config.js as shown below. Babel presets will run in last-to-first order.

module.exports = {
  presets: [
    // ...all other presets
    "@bigbinary/neeto",
  ];
}

Babel runs the plugins before presets. But usually plugins do minor code transformations which won't affect babel-preset-neeto. But if any of them interfere with babel-preset-neeto, add plugins directly to the top of the plugins array as shown below. Babel plugins are run in first-to-last order.

const zustandPickPlugin = require("@bigbinary/babel-preset-neeto/src/plugins/zustand-pick");
const anyOtherPluginFromNeeto = require("@bigbinary/babel-preset-neeto/src/plugins/other-plugin-name");

module.exports = {
  plugins: [
    zustandPickPlugin,
    anyOtherPluginFromNeeto,
    // ...all your plugins
  ],
  presets: [
    // ...all your presets
  ];
}

Available plugins

  • zustand-pick
  • zustand-pick-from

Keywords

FAQs

Package last updated on 12 Aug 2024

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