{"id":29022051,"url":"https://github.com/jsweb/rollup-plugin-esmin","last_synced_at":"2025-06-26T02:37:41.770Z","repository":{"id":33095696,"uuid":"151590548","full_name":"jsweb/rollup-plugin-esmin","owner":"jsweb","description":"Rollup plugin to minify ES6+ code using babel-minify with no transpiling to ES5","archived":false,"fork":false,"pushed_at":"2023-01-06T01:35:58.000Z","size":230,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-08T23:15:21.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-04T15:03:01.000Z","updated_at":"2021-06-18T20:14:07.000Z","dependencies_parsed_at":"2023-01-14T23:20:11.429Z","dependency_job_id":null,"html_url":"https://github.com/jsweb/rollup-plugin-esmin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jsweb/rollup-plugin-esmin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsweb%2Frollup-plugin-esmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsweb%2Frollup-plugin-esmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsweb%2Frollup-plugin-esmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsweb%2Frollup-plugin-esmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsweb","download_url":"https://codeload.github.com/jsweb/rollup-plugin-esmin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsweb%2Frollup-plugin-esmin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261988019,"owners_count":23240951,"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":[],"created_at":"2025-06-26T02:37:38.513Z","updated_at":"2025-06-26T02:37:41.707Z","avatar_url":"https://github.com/jsweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-esmin\n\nRollup plugin to minify ES6+ code using babel-minify with no transpiling to ES5.\n\n## Why?\n\nModern browsers and Node.js are up to date with ES6+ native support.\n\nExcept for the **work in progress** `import` and `export` native support, but it is coming soon.\n\nSo, we can generate lighter bundles now by just let **rollup** resolve `import` and `export` and not transpiling ES6+ code to ES5, but just minifying it.\n\n## Install\n\n```\nnpm i -D rollup-plugin-esmin\n```\n\nor\n\n```\nyarn add -D rollup-plugin-esmin\n```\n\n## Usage\n\nJust import on rollup config script and call it into `plugins` array.\n\n```javascript\nimport esmin from 'rollup-plugin-esmin'\n\nexport default {\n  input: 'src/escode.js',\n  plugins: [\n    esmin()\n  ],\n  output: {\n    format: 'umd',\n    file: 'dist/modern.umd.js'\n  }\n}\n```\n\nOptionally, `esmin()` can receive an object argument with parameters to transmit to `babel-minify`.\n\nThis object can contains these optional keys:\n\n```javascript\nesmin({\n  options: {},\n  overrides: {}\n})\n```\n\nThose `options` and `overrides` are the same as documented at [babel-minify](https://github.com/babel/minify/tree/master/packages/babel-minify).\n\n### Important\n\nIf you are using any other plugins to transform your code (like Typescript), it must be executed **before**.\n\n`rollup-plugin-esmin` just minify ES6+ code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsweb%2Frollup-plugin-esmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsweb%2Frollup-plugin-esmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsweb%2Frollup-plugin-esmin/lists"}