# awesome-minipack

> A mini bundler for ESM.

Latest version **1.3.0** (published 2023-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install awesome-minipack
pnpm add awesome-minipack
yarn add awesome-minipack
bun add awesome-minipack
```

Provides the command `minipack`.

## 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.3.0 |
| Published | 2023-08-17 |
| First published | 2023-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Eric Chen |
| Maintainers | knight174 |
| Keywords | minipack, bundler, esm bundler |

## Links

- npm: https://www.npmjs.com/package/awesome-minipack
- Repository: https://github.com/Knight174/awesome-minipack
- Homepage: https://github.com/Knight174/awesome-minipack#readme
- Issues: https://github.com/Knight174/awesome-minipack/issues
- npm.io page: https://npm.io/package/awesome-minipack

## Dependencies (5)

- [commander](https://npm.io/package/commander.md) ^11.0.0
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.22.10
- [@babel/parser](https://npm.io/package/@babel/parser.md) ^7.22.10
- [@babel/traverse](https://npm.io/package/@babel/traverse.md) ^7.22.10
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.22.10

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.3.0 (latest) — 2023-08-17
- 1.2.1 — 2023-08-17
- 1.2.0 — 2023-08-17
- 1.1.0 — 2023-08-17
- 1.0.0 — 2023-08-17

## README

# awesome-minipack

A mini bundler for ESM. | ESM 模块打包器

## start

```bash
npm i awesome-minipack
```

## example

### minipack.config.js

```js
const path = require('path');

module.exports = {
  entry: './src/index.js',
  output: {
    filename: 'main.js',
    path: path.resolve(__dirname, 'dist'),
  },
};
```

### scripts

scripts in package.json

```json
"scripts": {
  "build": "minipack"
},
```

### bundle

```bash
npm run build
# or
npx minipack
# or
npx minipack -c minipack.config.js
```

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