@wujibase/rollup-plugin-protobuf
v1.0.3
Published
A Rollup plugin which Converts .proto files to json ES6 modules.
Downloads
12
Readme
rollup-plugin-protobuf
A Rollup plugin which Converts .proto files to json ES6 modules.
Requirements
This plugin requires an LTS Node version (v8.0.0+) and Rollup v1.20.0+.
Install
using tnpm:
tnpm install @tencent/rollup-plugin-protobuf
Usage
Create a rollup.config.js
configuration file and import the plugin:
import protobuf from '@tencent/rollup-plugin-protobuf';
export default {
input: 'src/index.js',
output: {
dir: 'output',
format: 'cjs'
},
plugins: [protobuf()]
};
Attention
this package depends on npm package protobuf/cli
, which installs cli packages auto from npm
. If some deps install error, you should set npm registry to http://r.tnpm.oa.com