proto-loader icon indicating copy to clipboard operation
proto-loader copied to clipboard

Ignore google/protobuf/descriptors.proto

Open juliostanley opened this issue 8 years ago • 1 comments

Not familiar enough with the custom options, but I have a file that I am trying to load. It contains:

Import "google/protobuf/descriptor.proto"

These and extends are ignored by protobufjs, but not by this loader.

See HTTPS://github.com/dcodeIO/protobuf.js/blob/master/cli/pbjs.js#L153

HTTPS://github.com/dcodeIO/protobuf.js/blob/master/dist/protobuf-light.js#L3674

The loader fails to compile as it tries to resolve the import, maybe it can control the parser further? Haven't looked enough into it.

The issue regarding descriptiors at protobufjs was HTTPS://github.com/dcodeIO/protobuf.js/issues/118

Thoughts?

juliostanley avatar May 12 '16 18:05 juliostanley

Sorry, wrong link for issue HTTPS://github.com/dcodeIO/protobuf.js/issues/10

juliostanley avatar May 12 '16 18:05 juliostanley