{"id":41799,"library":"prosecco","title":"Prosecco","description":"An experimental ES2015-aware JavaScript minifier (v0.1.2). Still in active development with no stable release cadence. Focuses on leveraging ES2015+ syntax for size reduction, unlike general-purpose minifiers that target ES5. Not production-ready; intended for research and experimentation.","status":"active","version":"0.1.2","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","transpilation","compilation","esnext","es2015","es2017","es6","es7"],"install":[{"cmd":"npm install prosecco","lang":"bash","label":"npm"},{"cmd":"yarn add prosecco","lang":"bash","label":"yarn"},{"cmd":"pnpm add prosecco","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only; CommonJS require will fail.","wrong":"const prosecco = require('prosecco')","symbol":"default","correct":"import prosecco from 'prosecco'"}],"quickstart":{"code":"import prosecco from 'prosecco';\n\nconst code = `\n  const x = 1;\n  const y = 2;\n  console.log(x + y);\n`;\n\nconst minified = prosecco.minify(code, { sourceType: 'module' });\nconsole.log(minified.code);","lang":"javascript","description":"Minifies a simple ES2015 module using Prosecco's default export."},"warnings":[{"fix":"Do not use in production; test thoroughly before deploying.","message":"Prosecco is experimental and may produce incorrect output for edge cases.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Pin exact version and update cautiously.","message":"API is unstable and may change without notice between minor versions.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Ensure input is ES2015+ code; transpile down if needed.","message":"Only supports ES2015 syntax; older JS will cause errors.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'activ':12 'awar':6 'cadenc':18 'compil':46 'develop':13 'es2015':5,22,48 'es2015-aware':4 'es2017':49 'es5':34 'es6':50 'es7':51 'esnext':47 'experiment':3,43 'focus':19 'general':29 'general-purpos':28 'intend':39 'javascript':7,44 'leverag':21 'minifi':8,31 'product':37 'production-readi':36 'prosecco':1 'purpos':30 'readi':38 'reduct':26 'releas':17 'research':41 'size':25 'stabl':16 'still':10 'syntax':23 'target':33 'transpil':45 'unlik':27 'v0.1.2':9","created_at":"2026-06-04T18:54:10.050320+00:00","updated_at":"2026-06-04T18:54:10.050320+00:00","problems":[{"fix":"Convert code to ES2015+ or use a different minifier.","cause":"Prosecco cannot parse non-ES2015 syntax (e.g., var, function hoisting).","error":"SyntaxError: Unexpected token (1:1)"},{"fix":"Ensure import statement matches 'import prosecco from 'prosecco' and version >=0.1.0.","cause":"Default import may be incorrectly imported or package version is old.","error":"TypeError: prosecco.minify is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://gitlab.com/Rich-Harris/prosecco#README","github":null,"docs":null,"changelog":null,"pypi":null,"npm":"prosecco","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}