brianchirls / proto-loader

Protocol Buffer loader module for webpack
27 stars 18 forks source link

Ignores syntax declaration #6

Open escholtz opened 8 years ago

escholtz commented 8 years ago

It appears that this loader might ignore syntax declarations (unless I'm using it wrong?).

At the top of my foo.proto I have:

syntax = "proto3";

This gets ignored / dropped by proto-loader.

As a temporary work around, I'm using:

var schema = require('./foo.proto');
schema.syntax = "proto3";