Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
safari: Change terser configuration to workaround threejs/terser inco…
…mpatibility (tensorflow#5495) Users have reported problems loading TensorBoard in Safari: tensorflow#5489 Thanks to @severo and @bileschi we were able to identify the problem to an incompatibility between threejs (which we use for WebGL rendering) and terser (which we use for minimizing/optimizing our code). Angular encountered this problem last year and worked around it by changing their terser config by reducing number of passes from 3 to 2: * angular/angular-cli#21107 * angular/angular-cli@2c2b499 In our case I have to reduce the number of terser passes from 3 to 1. For some reason reducing to 2 does not solve the problem. This change surprisingly appears to reduce binary size. Before this change the size of index.js is 7672844 bytes. After this change the size of index.js is 7670992 bytes -- reducing binary size by 1852 bytes.
- Loading branch information