@wujibase/rollup-plugin-protobuf
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i @wujibase/rollup-plugin-protobuf

Weekly Downloads

7

Version

1.0.3

License

ISC

Unpacked Size

13.4 kB

Total Files

7

Last publish

Collaborators

  • maoyiluo
  • vvdennisjames
  • yzzhuo