{"library":"rollup-plugin-protobuf","title":"rollup-plugin-protobuf","description":"A Rollup plugin that converts .proto files into JavaScript modules using protobuf.js. Version 0.1.1 (stable, no recent updates). It integrates protobuf compilation into the Rollup build pipeline, allowing direct import of .proto files. Differentiates by being Rollup-specific and supporting options like convertFieldsToCamelCase. No known alternatives for Rollup + protobuf.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-protobuf"],"cli":null},"imports":["import protobuf from 'rollup-plugin-protobuf'","plugins: [ protobuf({ convertFieldsToCamelCase: true }) ]","import messages from './messages.proto'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport protobuf from 'rollup-plugin-protobuf';\n\nasync function build() {\n  const bundle = await rollup({\n    input: 'src/main.js',\n    plugins: [\n      protobuf({ convertFieldsToCamelCase: true })\n    ]\n  });\n  await bundle.write({ file: 'dist/bundle.js', format: 'esm' });\n}\n\nbuild();","lang":"javascript","description":"Shows how to configure the plugin with convertFieldsToCamelCase option and import a .proto file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}