{"name":"@rollup/plugin-terser","version":"1.0.1","keywords":["rollup","plugin","terser","minify","npm","modules","rollup-plugin"],"author":{"name":"Peter Placzek","email":"peter.placzek1996@gmail.com"},"license":"MIT","_id":"@rollup/plugin-terser@1.0.1","maintainers":[{"name":"shellscape","email":"andrew@shellscape.org"},{"name":"rich_harris","email":"richard.a.harris@gmail.com"},{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"lukastaegert","email":"lukas.taegert@tngtech.com"}],"homepage":"https://github.com/rollup/plugins/tree/master/packages/terser#readme","bugs":{"url":"https://github.com/rollup/plugins/issues"},"dist":{"shasum":"8e2180a89ca33e9debd7c83f35fdcae690532718","tarball":"http://registry-npm.ywwl.com/@rollup/plugin-terser/download/@rollup/plugin-terser-1.0.1.tgz","fileCount":13,"integrity":"sha512-8/UVzuKqkcP1YydBTd8sToJtc5ukOgahl7iIT/xYUPP3hK3dC29BnMfUVQB+wWCl2EpQHVFhkrge6DLN9jjOMg==","signatures":[{"sig":"MEQCIDzuVgA75tqZoRzOhcl5XQ5v95sruVozKvr40tF1NYOHAiA+5jCiLEBDjDFDk4mGOYptxyPAECUyOpoqn23w+5Q0PA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCOtsyhFR6yTJTbG5i/FVNdtJUNuMAtAMDKp6bc6rIL4wIhAJsS3ciTD8BF5IoXCOlZdwvWcZTrTQsew1nhNZcsBZAn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@rollup%2fplugin-terser@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32596,"size":6847,"noattachment":false,"key":"/@rollup/plugin-terser/-/@rollup/plugin-terser-1.0.1.tgz"},"main":"dist/cjs/index.js","_from":"file:/tmp/versioner-pack-F59TAQ/rollup-plugin-terser-1.0.1.tgz","types":"./types/index.d.ts","module":"dist/es/index.js","engines":{"node":">=20.0.0"},"exports":{"types":"./types/index.d.ts","import":"./dist/es/index.js","default":"./dist/cjs/index.js"},"scripts":{"test":"vitest --config ../../.config/vitest.config.mts run","build":"rollup -c","ci:lint":"pnpm build && pnpm lint","ci:test":"pnpm test -- --reporter=verbose && pnpm test:ts","pretest":"pnpm build","release":"pnpm --workspace-root package:release $(pwd)","test:ts":"tsc types/index.d.ts test/types.ts --noEmit","prebuild":"del-cli dist","prerelease":"pnpm build","ci:coverage":"nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"07774a98-273e-468f-a320-9dce589a5494"}},"_resolved":"/tmp/versioner-pack-F59TAQ/rollup-plugin-terser-1.0.1.tgz","_integrity":"sha512-8/UVzuKqkcP1YydBTd8sToJtc5ukOgahl7iIT/xYUPP3hK3dC29BnMfUVQB+wWCl2EpQHVFhkrge6DLN9jjOMg==","repository":{"url":"git+https://github.com/rollup/plugins.git","directory":"packages/terser"},"_npmVersion":"11.5.1","description":"Generate minified bundle","directories":{},"_nodeVersion":"24.21.0","dependencies":{"smob":"^1.0.0","terser":"^5.17.4","serialize-javascript":"^7.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.0.0-24","typescript":"^4.8.3","@types/serialize-javascript":"^5.0.4"},"peerDependencies":{"rollup":"^2.0.0||^3.0.0||^4.0.0"},"peerDependenciesMeta":{"rollup":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/plugin-terser_1.0.1_1792598515582_0.790261519067883","host":"s3://npm-registry-packages-npm-production"},"readme":"[npm]: https://img.shields.io/npm/v/@rollup/plugin-terser\n[npm-url]: https://www.npmjs.com/package/@rollup/plugin-terser\n[size]: https://packagephobia.now.sh/badge?p=@rollup/plugin-terser\n[size-url]: https://packagephobia.now.sh/result?p=@rollup/plugin-terser\n\n[![npm][npm]][npm-url]\n[![size][size]][size-url]\n[![libera manifesto](https://img.shields.io/badge/libera-manifesto-lightgrey.svg)](https://liberamanifesto.com)\n\n# @rollup/plugin-terser\n\n🍣 A Rollup plugin to generate a minified bundle with terser.\n\n## Requirements\n\nThis plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v20.0.0+) and Rollup v2.0+.\n\n## Install\n\nUsing npm:\n\n```console\nnpm install @rollup/plugin-terser --save-dev\n```\n\n## Usage\n\nCreate a `rollup.config.js` [configuration file](https://www.rollupjs.org/guide/en/#configuration-files) and import the plugin:\n\n```typescript\nimport terser from '@rollup/plugin-terser';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'output',\n    format: 'cjs'\n  },\n  plugins: [terser()]\n};\n```\n\nThen call `rollup` either via the [CLI](https://www.rollupjs.org/guide/en/#command-line-reference) or the [API](https://www.rollupjs.org/guide/en/#javascript-api).\n\n## Options\n\nThe plugin accepts a terser [Options](https://github.com/terser/terser#minify-options) object as input parameter,\nto modify the default behaviour.\n\nIn addition to the `terser` options, it is also possible to provide the following options:\n\n### `maxWorkers`\n\nType: `Number`<br>\nDefault: `undefined`\n\nInstructs the plugin to use a specific amount of cpu threads.\n\n```typescript\nimport terser from '@rollup/plugin-terser';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'output',\n    format: 'cjs'\n  },\n  plugins: [\n    terser({\n      maxWorkers: 4\n    })\n  ]\n};\n```\n\nNote: when a [`nameCache`](https://github.com/terser/terser#minify-options) is provided, chunks are minified sequentially on a single worker regardless of `maxWorkers`, since a shared name cache requires sequential minification to mangle names consistently across chunks.\n\n## Meta\n\n[CONTRIBUTING](/.github/CONTRIBUTING.md)\n\n[LICENSE (MIT)](/LICENSE)\n","publish_time":1792598515676,"_cnpm_publish_time":1792598515676,"dist-tags":{"latest":"1.0.2"}}