Commit 9bfed46c authored by ming's avatar ming

check provided size

parent 8af87de9
......@@ -3477,7 +3477,8 @@ void Generator::GenerateFile(const GeneratorOptions& options,
GenerateExtension(options, printer, *it);
}
if (options.import_style == GeneratorOptions::kImportCommonJs) {
// if provided is empty, do not export anything
if (options.import_style == GeneratorOptions::kImportCommonJs && provided.size()) {
printer->Print("goog.object.extend(exports, $package$);\n",
"package", GetFilePath(options, file));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment