# @what-src/plugin

> what-src plugin bundle.

Latest version **1.1.2-alpha.0** (published 2019-10-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @what-src/plugin
pnpm add @what-src/plugin
yarn add @what-src/plugin
bun add @what-src/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.1.2-alpha.0 |
| Published | 2019-10-01 |
| First published | 2019-09-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.9.0 |
| Dependencies | 4 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Scott Doucet |
| Maintainers | duroktar |

## Links

- npm: https://www.npmjs.com/package/@what-src/plugin
- Repository: https://github.com/duroktar/what-src/tree/master/packages/what-src-plugin
- npm.io page: https://npm.io/package/@what-src/plugin

## Dependencies (4)

- [@what-src/plugin-core](https://npm.io/package/@what-src/plugin-core.md) ^1.1.2-alpha.0
- [@what-src/babel-plugin](https://npm.io/package/@what-src/babel-plugin.md) ^1.1.2-alpha.0
- [@what-src/webpack-plugin](https://npm.io/package/@what-src/webpack-plugin.md) ^1.1.0-alpha.0
- [@what-src/typescript-plugin](https://npm.io/package/@what-src/typescript-plugin.md) ^1.1.2-alpha.0

## Recent versions

- 1.1.2-alpha.0 (latest) — 2019-10-01
- 1.1.1-alpha.0 — 2019-09-30
- 1.1.0-alpha.0 — 2019-09-30
- 1.0.11 — 2019-09-25
- 1.0.10 — 2019-09-23
- 1.0.9 — 2019-09-22
- 1.0.8 — 2019-09-22
- 1.0.6 — 2019-09-20
- 1.0.5 — 2019-09-19
- 1.0.4 — 2019-09-19
- 1.0.3 — 2019-09-19
- 1.0.2 — 2019-09-19
- 1.0.1 — 2019-09-18
- 1.0.0 — 2019-09-17

## README

# @what-src/plugin

> what-src plugin bundle.

Check out the [packages folder](https://github.com/duroktar/what-src/tree/master/packages) for more information.

## Usage

First install the plugin from npm.

```sh
npm install @what-src/plugin --save-dev
```

> what-src respects your systems $EDITOR environment variable (default: "vscode")
> Read [here](https://github.com/sindresorhus/env-editor) for more info.

### babel (required)

Via .babelrc or babel-loader.
```json
{
  "plugins": [
    "module:@what-src/plugin",
    ...
  ]
}
```

### Webpack-Dev-Server

```ts
$ webpack.config.js


const { WhatSrcServerWebpackPlugin } = require('@what-src/plugin') // <- import plugin

...
module.exports = {
  mode: 'development',
  entry: './src/index.jsx',
  output: {
    filename: 'bundle.js',
  },
  ...
plugins: [new WhatSrcServerWebpackPlugin()] // <- add plugin
...
}
```

```json
$ package.json
{
  ...
  "scripts": {
    ...
    "develop": "webpack-dev-server"
  },
  ...
}
```

```sh
npm run develop
```

> NOTE: The server runs on port 8018 by default.

## License

[MIT](https://opensource.org/licenses/MIT)

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