# @zeit/next-source-maps

> Generate source maps during production build in your Next.js project

Latest version **0.0.3** (published 2018-09-19) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @zeit/next-source-maps
pnpm add @zeit/next-source-maps
yarn add @zeit/next-source-maps
bun add @zeit/next-source-maps
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-09-19 |
| First published | 2018-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/zeit__next-source-maps) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2668 |
| Maintainers | arunoda, codetheory, hharnisc, iamevilrabbit, igorklopov, jamo, javivelasco, joecohens, leo, matheuss, nkzawa, olliv, rauchg, timneutkens, tootallnate |

## Links

- npm: https://www.npmjs.com/package/@zeit/next-source-maps
- Repository: https://github.com/zeit/next-plugins
- Homepage: https://github.com/zeit/next-plugins#readme
- Issues: https://github.com/zeit/next-plugins/issues
- npm.io page: https://npm.io/package/@zeit/next-source-maps

## Recent versions

- 0.0.3 (latest) — 2018-09-19
- 0.0.4-canary.1 (canary) — 2018-11-14
- 0.0.4-canary.0 — 2018-10-18
- 0.0.3-canary.1 — 2018-07-30
- 0.0.2 — 2018-03-22
- 0.0.1 — 2018-03-14

## README

# Next.js + Source Maps

Generate source maps during production build in your Next.js project

## Installation

```
npm install --save @zeit/next-source-maps
```

or

```
yarn add @zeit/next-source-maps
```

### Usage with environment variables

Create a next.config.js

```js
// next.config.js
const withSourceMaps = require('@zeit/next-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
```

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