@@ -117,12 +117,7 @@ function genproto_group3_commonjs_strict(cb) {
117
117
}
118
118
119
119
120
- function getClosureCompilerCommand ( exportsFile , outputFile , keepSymbols ) {
121
- let compilationLevel = 'ADVANCED' ;
122
- if ( keepSymbols === true ) {
123
- compilationLevel = 'SIMPLE' ;
124
- }
125
-
120
+ function getClosureCompilerCommand ( exportsFile , outputFile ) {
126
121
const closureLib = 'node_modules/google-closure-library' ;
127
122
return [
128
123
'node_modules/.bin/google-closure-compiler' ,
@@ -139,13 +134,13 @@ function getClosureCompilerCommand(exportsFile, outputFile, keepSymbols) {
139
134
'--js=binary/utils.js' ,
140
135
'--js=binary/writer.js' ,
141
136
`--js=${ exportsFile } ` ,
142
- `--compilation_level="${ compilationLevel } "` ,
143
137
'--generate_exports' ,
144
138
'--export_local_property_definitions' ,
145
139
`--entry_point=${ exportsFile } ` , `> ${ outputFile } `
146
140
] . join ( ' ' ) ;
147
141
}
148
142
143
+
149
144
function gen_google_protobuf_js ( cb ) {
150
145
exec (
151
146
getClosureCompilerCommand ( 'commonjs/export.js' , 'google-protobuf.js' ) ,
@@ -157,8 +152,7 @@ function commonjs_testdeps(cb) {
157
152
'mkdir -p commonjs_out/test_node_modules && ' +
158
153
getClosureCompilerCommand (
159
154
'commonjs/export_testdeps.js' ,
160
- 'commonjs_out/test_node_modules/testdeps_commonjs.js' ,
161
- true ) ,
155
+ 'commonjs_out/test_node_modules/testdeps_commonjs.js' ) ,
162
156
make_exec_logging_callback ( cb ) ) ;
163
157
}
164
158
0 commit comments