Webpack imported module is not a constructor