0.2.13 • Published 9 months ago

rollup-plugin-ecma-version-validator v0.2.13

Weekly downloads
343
License
MIT
Repository
github
Last release
9 months ago

rollup-plugin-ecma-version-validator

npm version npm.io npm.io

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
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. The default version is 5(ES5).

LICENCE

0.2.13

9 months ago

0.2.0

2 years ago

0.2.8

2 years ago

0.2.12

2 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago