# @hankliu/babel

> Provide common babel configuration

Latest version **1.0.1** (published 2019-06-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install @hankliu/babel
pnpm add @hankliu/babel
yarn add @hankliu/babel
bun add @hankliu/babel
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-06-16 |
| First published | 2019-05-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | hank.liu |
| Maintainers | hank.liu |
| Keywords | babel, config |

## Links

- npm: https://www.npmjs.com/package/@hankliu/babel
- Repository: https://github.com/hankliu62/babel
- Homepage: https://github.com/hankliu62/babel#readme
- Issues: https://github.com/hankliu62/babel/issues
- npm.io page: https://npm.io/package/@hankliu/babel

## Dependencies (5)

- [@babel/core](https://npm.io/package/@babel/core.md) ^7.x
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.x
- [@babel/plugin-proposal-decorators](https://npm.io/package/@babel/plugin-proposal-decorators.md) ^7.x
- [@babel/plugin-syntax-dynamic-import](https://npm.io/package/@babel/plugin-syntax-dynamic-import.md) ^7.x
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) ^7.x

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-06-16
- 1.0.0 — 2019-05-12

## README

# HankLiu Babel

提供基础的babel配置项

## 安装

`npm install @hankliu/babel -D`

or

`yarn add @hankliu/babel -D`

## 使用

* in .babelrc.js

```js

const babelConfig = require('@hankliu/babel');
// 修改规则
babelConfig.presets.push('@babel/preset-flow');
babelConfig.plugins.push('@babel/plugin-transform-runtime');
module.exports = babelConfig;
```

* in webpack with babel-loader
```js
{
   rules: [{
    test: /\.js$/,
    loader: require.resolve('babel-loader'),
    options: babelConfig
  }]
}
```

## 注意

我们使用的是 **peerDependencies** 管理依赖，如果是在npm2中使用该插件，不许需要在自己项目中额外安装下列依赖，npm2会自行强制安装peerDependencies所要求指定的依赖包；如果是在npm3+中使用该插件，npm3中不会再要求peerDependencies所指定的依赖包被强制安装，相反npm3会在安装结束后检查本次安装是否正确，如果不正确会给用户打印警告提示。

```json
"peerDependencies": {
  "@babel/core": "^7.x",
  "@babel/plugin-proposal-class-properties": "^7.x",
  "@babel/plugin-proposal-decorators": "^7.x",
  "@babel/plugin-syntax-dynamic-import": "^7.x",
  "@babel/preset-env": "^7.x"
}
```

---
_Source: https://npm.io/package/@hankliu/babel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
