brianchirls / proto-loader

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

Ignore google/protobuf/descriptors.proto #9

Open juliostanley opened 8 years ago

juliostanley commented 8 years ago

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 commented 8 years ago

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