# @builder/exports-field-webpack-plugin

> webpack plugin for exports field

Latest version **1.0.0** (published 2021-05-20) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @builder/exports-field-webpack-plugin
pnpm add @builder/exports-field-webpack-plugin
yarn add @builder/exports-field-webpack-plugin
bun add @builder/exports-field-webpack-plugin
```

## 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.0 |
| Published | 2021-05-20 |
| First published | 2021-05-20 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 40.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 112 |
| Maintainers | luhengchang228, solojiang, chriscindy, rax-publisher, sobear, clarkxia |

## Links

- npm: https://www.npmjs.com/package/@builder/exports-field-webpack-plugin
- Repository: https://github.com/raxjs/rax-app
- Homepage: https://github.com/raxjs/rax-app#readme
- Issues: https://github.com/raxjs/rax-app/issues
- npm.io page: https://npm.io/package/@builder/exports-field-webpack-plugin

## Recent versions

- 1.0.0 (latest) — 2021-05-20
- 1.0.0-beta.8 (beta) — 2022-02-16
- 1.0.0-beta.7 — 2021-12-23
- 1.0.0-beta.6 — 2021-12-22
- 1.0.0-beta.5 — 2021-12-22
- 1.0.0-beta.4 — 2021-12-22
- 1.0.0-beta.3 — 2021-12-22
- 1.0.0-beta.2 — 2021-12-22
- 1.0.0-beta.1 — 2021-12-13

## README

# Exports Field webpack plugin

Support [package-exports](https://webpack.js.org/guides/package-exports/) in webpack4.

## Install

```bash
$ npm install @builder/exports-field-webpack-plugin
```

## Usage

You can use it with webpack chain as:

```js
const ExportsFieldWebpackPlugin = require('@builder/exports-field-webpack-plugin').default;

config.plugin('ExportsFieldWebpackPlugin').use(ExportsFieldWebpackPlugin, [
  {
    conditionNames: ['web'],
  },
]);
```

it will only load module with `web` condition path which define in module's package.json `exports` field.

## Appreciation

This plugin is inspired by `enhanced-resolve` that creates webpack resolver.

---
_Source: https://npm.io/package/@builder/exports-field-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
