title: Syntax error: Unexpected token when implementing reducer in Redux
body: <p>When I build my application using gulp, gulp keeps giving me a syntax error:</p>
  
  <pre><code>SyntaxError: /Users/USER/Documents/portfolio_projects/USER_PROJECT/PROJECT/src/main/webapp/src/reducers/AuthorizationReducer.js: 
  Unexpected token (12:4) while parsing file: /Users/USER/Documents/portfolio_projects/USER_PROJECT/PROJECT/src/main/webapp/src/reducers/AuthorizationReducer.js]
  pos: 261,
  loc: { line: 12, column: 4 }
  </code></pre>
  
  <p>AuthorizationReducer.js:</p>
  
  <pre><code>import ActionType from '../actions/ActionType';
  
  const defaultState = {
      signedIn: false,
      isAuthorizing: false
  }
  
  const AuthorizationReducer = (state = defaultState, action) =&gt; {
      switch(action.type) {
          case ActionType.Authorization.REQUEST:
              return {
                  ...state,
                  isAuthorizing: true
              };
          case ActionType.Authorization.SUCCESS:
              return {
                  ...state,
                  signedIn: true,
                  isAuthorizing: false
              };
          case ActionType.Authorization.FAILURE:
              return {
                  ...state,
                  signedIn: false,
                  isAuthorizing: false
              };
      }
      return state;
  }
  
  export default AuthorizationReducer;
  </code></pre>
  
  <p>ActionType.js</p>
  
  <pre><code>const ActionType = {
  
  Authorization: {
      REQUEST: '',
      SUCCESS: '',
      FAILURE: ''
    }
  }
  
  const ActionTypeHax: any = ActionType;
  Object.keys(ActionTypeHax).forEach(category =&gt; {
      Object.keys(ActionTypeHax[category]).forEach(actionType =&gt; {
          ActionTypeHax[category][actionType] = category + '.' + actionType;
      });
  });
  
  module.export = ActionType;
  </code></pre>
  
  <p>I just don't see what's wrong here. As far as I can tell the syntax here is correct for implementing a reducer.</p>