@bigbinary/babel-preset-neeto

中文文档
1.1.0发布于 2026/04/02ISCCommonJS近 30 天下载 4.6万

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

原始使用文档
文档目录3 节
  1. Usage
  2. Available plugins
  3. Other links

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

版本与发布记录

@bigbinary/babel-preset-neeto 共发布 15 个版本,首次发布于 2023/04/18;过去 12 个月发布了 6 个版本。

版本发布日期距今
1.1.0latest2026/04/027 个月前
1.0.162026/04/027 个月前
1.0.152026/04/027 个月前
1.0.142025/12/1110 个月前
1.0.132025/12/1110 个月前
1.0.112025/12/1110 个月前

关于 @bigbinary/babel-preset-neeto 的常见问题

@bigbinary/babel-preset-neeto 是什么?

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

如何安装 @bigbinary/babel-preset-neeto?

在项目目录运行 npm install @bigbinary/babel-preset-neeto,或使用 pnpm add / yarn add / bun add。

@bigbinary/babel-preset-neeto 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/bigbinary__babel-preset-neeto 是否存在。

@bigbinary/babel-preset-neeto 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@bigbinary/babel-preset-neeto 可以商用吗?

@bigbinary/babel-preset-neeto 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@bigbinary/babel-preset-neeto 的下载量有多少?

根据 npm 官方下载统计,@bigbinary/babel-preset-neeto 在 2026/10/08 – 2026/11/06 这 30 天内被下载 46,015 次,日均约 1,534 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bigbinary/babel-preset-neeto 还在维护吗?

最新版本 1.1.0 发布于 2026/04/02(7 个月前);至今共发布 15 个版本,其中过去 12 个月发布了 6 个;首次发布于 2023/04/18。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。