{"id":15853154,"url":"https://github.com/omrilotan/ecma-webpack-plugin","last_synced_at":"2026-04-20T04:04:33.199Z","repository":{"id":43481516,"uuid":"297964103","full_name":"omrilotan/ecma-webpack-plugin","owner":"omrilotan","description":"🧳 Verify your output code is compliant to the version you're targeting","archived":false,"fork":false,"pushed_at":"2022-02-28T14:24:08.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-26T00:25:17.475Z","etag":null,"topics":["ecma-webpack-plugin","ecmascript","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ecma-webpack-plugin","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omrilotan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-23T12:33:58.000Z","updated_at":"2022-02-27T16:28:21.000Z","dependencies_parsed_at":"2022-08-29T02:12:09.104Z","dependency_job_id":null,"html_url":"https://github.com/omrilotan/ecma-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fecma-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fecma-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fecma-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fecma-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omrilotan","download_url":"https://codeload.github.com/omrilotan/ecma-webpack-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246693069,"owners_count":20818799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecma-webpack-plugin","ecmascript","webpack"],"created_at":"2024-10-05T19:03:03.580Z","updated_at":"2026-04-20T04:04:33.169Z","avatar_url":"https://github.com/omrilotan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ecma-webpack-plugin [![](https://img.shields.io/npm/v/ecma-webpack-plugin.svg)](https://www.npmjs.com/package/ecma-webpack-plugin) [![](https://img.shields.io/badge/source--000000.svg?logo=github\u0026style=social)](https://github.com/omrilotan/ecma-webpack-plugin)\n\nVerify your wepback output code is compliant to the ECMAScript version you're targeting.\n\nThis is useful for cases when you want to be sure your babel options get you covered and especially if you exclude node modules directory like the [official babel recommendation](https://babeljs.io/setup#via-config) (I mean, why would you exclude the packages you don't control?).\n\n### Example webpack.config.js\n```js\nconst EcmaPlugin = require('ecma-webpack-plugin');\n\nmodule.exports = {\n\t// ...\n\tplugins: [\n\t\t// ...,\n\t\tnew EcmaPlugin({ parser: { ecmaVersion: '5' } })\n  ]\n};\n```\n\n### Options:\n\n| Options | Meaning | defaults\n| - | - | -\n| parser | [Parser options (Acorn)](https://github.com/acornjs/acorn/tree/master/acorn#readme) | [Acorn defaults](https://github.com/acornjs/acorn/tree/master/acorn#interface)\n| extensions | File extensions to verify | `['js', 'mjs']`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomrilotan%2Fecma-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomrilotan%2Fecma-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomrilotan%2Fecma-webpack-plugin/lists"}