@bigbinary/babel-preset-neeto

1.0.7 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @bigbinary/babel-preset-neeto

Weekly Downloads

4,879

Version

1.0.7

License

ISC

Unpacked Size

41.7 kB

Total Files

82

Last publish

Collaborators

  • neetohq
  • deepakjosp
  • philson_philip
  • mohitharshan
  • abhayvashokan
  • ajmaln
  • bigbinarybot
  • yedhink
  • sangameshsomawar
  • amaldinesh
  • neerajdotname
  • goutham-bigbinary