Skip to content

Commit

Permalink
fix: use bundled filename to fix common pb includes (#1860)
Browse files Browse the repository at this point in the history
* CLI: Fix relative path to Google pb files

* Revert previous PR.

* Use bundled filename when fetching proto file.
  • Loading branch information
gitjuba committed Feb 2, 2023
1 parent 64e8936 commit dce9a2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/root.js
Expand Up @@ -145,6 +145,7 @@ Root.prototype.load = function load(filename, options, callback) {

// Fetches a single file
function fetch(filename, weak) {
filename = getBundledFileName(filename) || filename;

// Skip if already loaded / attempted
if (self.files.indexOf(filename) > -1)
Expand Down

0 comments on commit dce9a2e

Please sign in to comment.