Module parse failed: Unexpected token

I used the typescript template to create my serverless project, and here is the current webpack file.

const path = require('path');
const slsw = require('serverless-webpack');

module.exports = {
  entry: slsw.lib.entries,
  resolve: {
    extensions: [
      '.js',
      '.jsx',
      '.json',
      '.ts',
      '.tsx'
    ]
  },
  output: {
    libraryTarget: 'commonjs',
    path: path.join(__dirname, '.webpack'),
    filename: '[name].js',
  },
  target: 'node',
  module: {
    loaders: [
      { test: /\.ts(x?)$/, loader: 'ts-loader' },
    ],
  },
};

everything was working until I added googleapi dependency into my handler.js

---- in handler.js -----
const {google} = require(‘googleapis’);

I guess it is some problem within my webpack configuration, or maybe the slsw does not like google library? Any suggestion on how to solve it?

**ERROR in ./node_modules/gcp-metadata/build/src/index.js**

**Module parse failed: Unexpected token (101:8)**

**You may need an appropriate loader to handle this file type.**

**| async function fastFailMetadataRequest(options) {**

**| const secondaryOptions = {**

**| ...options,**

**| url: options.url.replace(getBaseUrl(), getBaseUrl(exports.SECONDARY_HOST_ADDRESS)),**

**| };**

 **@ ./node_modules/google-auth-library/build/src/auth/computeclient.js 18:20-43**

 **@ ./node_modules/google-auth-library/build/src/index.js**

 **@ ./node_modules/googleapis/build/src/index.js**

 **@ ./apis/google.js**