# @maa/monkey-source-maps

> Generate source maps during production build in your project

Latest version **0.1.1** (published 2019-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @maa/monkey-source-maps
pnpm add @maa/monkey-source-maps
yarn add @maa/monkey-source-maps
bun add @maa/monkey-source-maps
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-12-22 |
| First published | 2019-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zan |

## Links

- npm: https://www.npmjs.com/package/@maa/monkey-source-maps
- npm.io page: https://npm.io/package/@maa/monkey-source-maps

## Recent versions

- 0.1.1 (latest) — 2019-12-22
- 0.1.0 — 2019-12-22
- 0.0.2 — 2019-12-20
- 0.0.1 — 2019-12-18

## README

# Source Maps

Generate source maps during production build in your project

## Installation

```
npm install --save @maa/monkey-source-maps
```

or

```
yarn add @maa/monkey-source-maps
```

### Usage with environment variables

Create a next.config.js

```js
// next.config.js
const withSourceMaps = require('@maa/monkey-source-maps');
module.exports = withSourceMaps({
	webpack(config, options) {
		return config;
	}
});
```

Then you can run a regular build command and source maps will be outputted for the bundles

```bash
npm run build
```

### Configuring plugin

By default devtool is `source-map`. If you want use different devtool type, you can pass it with options.

```js
// next.config.js
const withSourceMaps = require('@maa/monkey-source-maps')({
	devtool: 'hidden-source-map'
});

module.exports = withSourceMaps({
	webpack(config, options) {
		return config;
	}
});
```

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