{"library":"rollup-plugin-ecma-version-validator","title":"rollup-plugin-ecma-version-validator","description":"A Rollup plugin that verifies the ECMAScript version of bundle files by checking syntax against a specified target (default ES5). It uses Acorn under the hood to parse the output and reports any syntax features that exceed the target version. This is useful for ensuring production bundles don't include unsupported syntax for older environments. The current stable version is 0.2.13, with infrequent releases. It supports Rollup ^2.16.1 and ^3.x. Unlike other ECMAScript compliance tools, this plugin integrates directly into the Rollup build pipeline and runs on the final bundle, not on source files.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-ecma-version-validator"],"cli":null},"imports":["import { ecmaVersionValidator } from 'rollup-plugin-ecma-version-validator'","import type { EcmaVersionValidatorOptions } from 'rollup-plugin-ecma-version-validator'","const { ecmaVersionValidator } = require('rollup-plugin-ecma-version-validator')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport { ecmaVersionValidator } from 'rollup-plugin-ecma-version-validator';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'iife'\n  },\n  plugins: [\n    ecmaVersionValidator({\n      ecmaVersion: 5\n    })\n  ]\n};","lang":"typescript","description":"Basic usage of the plugin to validate that the bundle only contains ES5 syntax.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}