Commit bb83c852 authored by Robert Knight's avatar Robert Knight

Enable terser workarounds for Safari 10

This fixes an error in production builds of the client in Safari 10:

```
SyntaxError: Cannot declare a let variable twice: 't'.
```

Fixes #2664
parent 25d3aa48
...@@ -31,7 +31,10 @@ function minifyStream() { ...@@ -31,7 +31,10 @@ function minifyStream() {
const code = Buffer.concat(this.chunks).toString(); const code = Buffer.concat(this.chunks).toString();
// See https://github.com/terser/terser#minify-options-structure // See https://github.com/terser/terser#minify-options-structure
const options = {}; const options = {
// See https://github.com/hypothesis/client/issues/2664.
safari10: true,
};
// If the code we're minifying has a sourcemap then generate one for the // If the code we're minifying has a sourcemap then generate one for the
// minified output, otherwise skip it. // minified output, otherwise skip it.
......
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