title: Webpack without Uglify giving "Unexpected Token ~" with redux-persist
body: <p>I am trying to add redux-persist to my redux application.</p>
  
  <p>I am using webpack to bundle my javascript, and in development the redux-persist package works as expected. My development config (written in coffeescript) looks like this: </p>
  
  <pre><code>    debug: true
      devtool: "eval"
      output:
          path: path.resolve 'app/static/bundles/'
          filename: '[name].js'
          publicPath: "#{devServer}:#{port}/app/static/bundles/"
  
      plugins: [
          new webpack.NamedModulesPlugin
          new webpack.HotModuleReplacementPlugin
          new webpack.NoErrorsPlugin
          new BundleTracker filename: './webpack/webpack-stats.json'
      ]
  </code></pre>
  
  <p>Before deploying to production I build a "staging" bundle that uses the production NODE_ENV but skips the Uglify plugin step to save time, as I often rebuild this bundle multiple times before deploying. However, if I require <code>redux-persist</code> anywhere in my source, building this bundle is successful but the page does not load and I get the error <code>Unexpected Token ~</code>, which I have traced to the <a href="https://github.com/isaacs/json-stringify-safe" rel="nofollow noreferrer"><code>json-stringify-safe</code></a> dependency of <code>redux-persist</code>. The "staging" config looks like this: </p>
  
  <pre><code>    output:
          path: path.resolve 'app/static/dist/'
          filename: '[name].js'
          sourceMapFilename: "[name].map.js"
      debug: false
      cache: false
      devtool: "source-map"
  
      plugins: [
  
          new BundleTracker filename: './webpack/webpack-stats-staging.json'
  
          new webpack.DefinePlugin
              'process.env':
                  'NODE_ENV': JSON.stringify 'production'
          new webpack.NamedModulesPlugin
          new webpack.optimize.OccurenceOrderPlugin
  
          new ExtractTextPlugin "[name].css"
  
      ]
  </code></pre>
  
  <p>The only difference between this and my production config is that it does not include Uglify, however when I use this config, everything works: </p>
  
  <pre><code>   output:
          path: path.resolve 'app/static/dist/'
          filename: '[name].js'
          sourceMapFilename: "[name].map.js",
  
      devtool: "source-map"
  
      debug: false
      plugins: [
  
          new BundleTracker filename: './webpack/webpack-stats-prod.json'
  
          new webpack.DefinePlugin
              'process.env':
                  'NODE_ENV': JSON.stringify 'production'
  
          new webpack.optimize.OccurenceOrderPlugin
  
          new ExtractTextPlugin "[name].css"
  
          new webpack.optimize.UglifyJsPlugin
              sourceMap: false
              compressor:
                  warnings: false
  
  
      ]
  </code></pre>