# webpack-node-modules

> Include specified node_modules in webpack loader

Latest version **0.1.1** (published 2017-07-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-node-modules
pnpm add webpack-node-modules
yarn add webpack-node-modules
bun add webpack-node-modules
```

## 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 | 2017-07-04 |
| First published | 2017-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | egoist |
| Maintainers | rem |

## Links

- npm: https://www.npmjs.com/package/webpack-node-modules
- Repository: https://github.com/egoist/webpack-node-modules
- Homepage: https://github.com/egoist/webpack-node-modules#readme
- Issues: https://github.com/egoist/webpack-node-modules/issues
- npm.io page: https://npm.io/package/webpack-node-modules

## Dependencies (2)

- [semver](https://npm.io/package/semver.md) ^5.3.0
- [read-pkg-up](https://npm.io/package/read-pkg-up.md) ^2.0.0

## Recent versions

- 0.1.1 (latest) — 2017-07-04
- 0.1.0 — 2017-04-23

## README

# webpack-node-modules

[![NPM version](https://img.shields.io/npm/v/webpack-node-modules.svg?style=flat)](https://npmjs.com/package/webpack-node-modules) [![NPM downloads](https://img.shields.io/npm/dm/webpack-node-modules.svg?style=flat)](https://npmjs.com/package/webpack-node-modules) [![CircleCI](https://circleci.com/gh/egoist/webpack-node-modules/tree/master.svg?style=shield)](https://circleci.com/gh/egoist/webpack-node-modules/tree/master)  [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate)

Include node modules which meet one of following requirements in webpack loader:

- has `module` field
- `engines.node > 0.10`

## Install

```bash
yarn add webpack-node-modules --dev
```

## Usage

```js
// webpack.config.js
const path = require('path')
const nodeModules = require('webpack-node-modules')

module.exports = {
  module: {
    rules: [{
      test: /\.js$/,
      loader: 'babel-loader',
      include: [
        // Your app
        path.join(__dirname, 'src'),
        // Modules with `module` field or `engines.node > 0.10`
        nodeModules()
      ]
    }]
  }
}
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D


## Author

**webpack-node-modules** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>
Authored and maintained by egoist with help from contributors ([list](https://github.com/egoist/webpack-node-modules/contributors)).

> [egoistian.com](https://egoistian.com) · GitHub [@egoist](https://github.com/egoist) · Twitter [@rem_rin_rin](https://twitter.com/rem_rin_rin)

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