@@ -1418,34 +1418,6 @@ def emscripten_npm_install(tool, directory):
1418
1418
errlog ('Error running %s:\n %s' % (e .cmd , e .output ))
1419
1419
return False
1420
1420
1421
- # Manually install the appropriate native Closure Compiler package
1422
- # This is currently needed because npm ci will install the packages
1423
- # for Closure for all platforms, adding 180MB to the download size
1424
- # There are two problems here:
1425
- # 1. npm ci does not consider the platform of optional dependencies
1426
- # https://github.com/npm/cli/issues/558
1427
- # 2. A bug with the native compiler has bloated the packages from
1428
- # 30MB to almost 300MB
1429
- # https://github.com/google/closure-compiler-npm/issues/186
1430
- # If either of these bugs are fixed then we can remove this exception
1431
- closure_compiler_native = ''
1432
- if LINUX and ARCH in ('x86' , 'x86_64' ):
1433
- closure_compiler_native = 'google-closure-compiler-linux'
1434
- if MACOS and ARCH in ('x86' , 'x86_64' ):
1435
- closure_compiler_native = 'google-closure-compiler-osx'
1436
- if WINDOWS and ARCH == 'x86_64' :
1437
- closure_compiler_native = 'google-closure-compiler-windows'
1438
- if closure_compiler_native :
1439
- print ('Running post-install step: npm install' , closure_compiler_native )
1440
- try :
1441
- subprocess .check_output (
1442
- [npm , 'install' , '--production' , '--no-optional' , closure_compiler_native ],
1443
- cwd = directory , stderr = subprocess .STDOUT , env = env ,
1444
- universal_newlines = True )
1445
- except subprocess .CalledProcessError as e :
1446
- errlog ('Error running %s:\n %s' % (e .cmd , e .output ))
1447
- return False
1448
-
1449
1421
print ('Done running: npm ci' )
1450
1422
return True
1451
1423
0 commit comments