Skip to content

Commit

Permalink
Fixed dependency for json-module to use "light".
Browse files Browse the repository at this point in the history
"minimal" doesn't include `Root`, as mentioned in #828 and #856. Probably caused by #813.
  • Loading branch information
eventualbuddha committed Jul 11, 2017
1 parent c43243b commit adecd54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/targets/json-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function json_module(root, options, callback) {
}
var json = util.jsonSafeProp(JSON.stringify(root.nested, null, 2).trim());
output.push(".addJSON(" + json + ");");
output = util.wrap(output.join(""), protobuf.util.merge({ dependency: "protobufjs/minimal" }, options));
output = util.wrap(output.join(""), protobuf.util.merge({ dependency: "protobufjs/light" }, options));
process.nextTick(function() {
callback(null, output);
});
Expand Down

0 comments on commit adecd54

Please sign in to comment.