# rollup-plugin-ecma-version-validator

> A rollup plugin to verify ECMAScript version for bundle files

Latest version **0.2.13** (published 2023-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-ecma-version-validator
pnpm add rollup-plugin-ecma-version-validator
yarn add rollup-plugin-ecma-version-validator
bun add rollup-plugin-ecma-version-validator
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.13 |
| Published | 2023-08-13 |
| First published | 2020-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 1 |
| Unpacked size | 13.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | koba04 |
| Maintainers | koba04 |
| Keywords | rollup, rollup-plugin, ecma |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-ecma-version-validator
- Repository: https://github.com/koba04/rollup-plugin-ecma-version-validator
- Issues: https://github.com/koba04/rollup-plugin-ecma-version-validator/issues
- npm.io page: https://npm.io/package/rollup-plugin-ecma-version-validator

## Dependencies (1)

- [acorn](https://npm.io/package/acorn.md) ^8.7.1

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.2.13 (latest) — 2023-08-13
- 0.2.12 — 2022-05-19
- 0.2.8 — 2022-05-19
- 0.2.0 — 2022-05-19
- 0.1.6 — 2020-10-07
- 0.1.5 — 2020-10-07
- 0.1.4 — 2020-06-17
- 0.1.3 — 2020-06-17
- 0.1.2 — 2020-06-17
- 0.1.1 — 2020-06-17

## README

# rollup-plugin-ecma-version-validator
[![npm version](https://badge.fury.io/js/rollup-plugin-ecma-version-validator.svg)](https://badge.fury.io/js/rollup-plugin-ecma-version-validator)
[![](https://github.com/koba04/rollup-plugin-ecma-version-validator/workflows/test/badge.svg)](https://github.com/koba04/rollup-plugin-ecma-version-validator/actions?workflow=test)
[![](https://github.com/koba04/rollup-plugin-ecma-version-validator/workflows/lint/badge.svg)](https://github.com/koba04/rollup-plugin-ecma-version-validator/actions?workflow=lint)

A rollup plugin to verify ECMAScript version for bundle files.

This plugin is intended to verify that bundle files don't include unsupported syntaxes, so I encourage to enable this only on a production build.

## Install

```
% npm install --save-dev rollup-plugin-ecma-version-validator
```

## How to use

Add a `ECMAVersionValidatorPlugin` instance into a `plugins` field in `rollup.config.js`

- `rollup.config.js`

```js
import { ecmaVersionValidator } from "rollup-plugin-ecma-version-validator";

export default {
  input: "index.js",
  plugins: [ecmaVersionValidator({ /* options */ })],
};
```

## Options

### ecmaVersion

- This is a target ECMAScript version you expect. See the avaiable versions in the [Acorn's documentation](https://github.com/acornjs/acorn/tree/master/acorn#interface). The default version is `5`(ES5).

## LICENCE

- [LICENSE](./LICENSE)

---
_Source: https://npm.io/package/rollup-plugin-ecma-version-validator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
