title: "const not supported in strict mode" on Safari when "const" is not in my compiled javascript bundle
body: <p>I am using webpack with babel loader to compile a react/es6 javascript front end. This is for a node Express application</p>
  
  <p>The javascript works on on all modern browsers however breaks when using Safari version 8 and bellow. It produces the following error message : </p>
  
  <blockquote>
    <p>[Error] SyntaxError: Unexpected keyword 'const'. Const declarations
    are not supported in strict mode. (anonymous function) (app.js.gz,
    line 1)</p>
  </blockquote>
  
  <p>As mentioned, my compiled javascript does not have any use of the word "const", other than in comments. The question is what is causing this error, and how do I resolve it?</p>
  
  <p>I have tried excluding and including node modules, changing lets/consts in my uncompleted code to vars, and a number of webpack configurations like production mode/uglify-minimise/remove-comments non of which work.</p>
  
  <p>The only option I can think of is that my node server is somehow the issue, as it is the only code that contains "const" references. If this could be the problem can you explain why, as this code should not be hitting the client as far as I am aware.</p>
  
  <p>Here is my webpack code:</p>
  
  <p><a href="https://i.stack.imgur.com/sVN7c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sVN7c.png" alt="enter image description here"></a></p>
  
  <p>Here is the line the error occurs on :</p>
  
  <p><a href="https://i.stack.imgur.com/Pw6ZY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pw6ZY.png" alt="enter image description here"></a></p>
  
  <p>Node Version : v8.9.4</p>
  
  <p>Webpack : 3.10.0</p>