Zip size is much larger on cdci than locally

I have an issue where the size of the zipped lambdas are much larger on the cdci (GitLab CE 11.8.0) than when running the package script locally.
The lambdas are written in typescript and I use serverless-webpack to decrease the size as much as I can.
I have not written the code so I don’t know why they are so large
but still I think there should not really be that big of a difference between local and cdci packaging?

Am I missing something?
Here is the build log:

Size when running serverless package locally: 28.6 MB 25.8 MB 25.8 MB
reporting: 5 MB 2.3 MB 90 KB

Size when running serverless deploy on cdci: 168.76 MB 92.91 MB 92.91 MB
reporting: 4.7 MB 2.08 MB 55.68 KB

- serverless-dotenv-plugin
- serverless-offline
- serverless-plugin-aws-alerts
- serverless-plugin-info-json
- serverless-webpack

  individually: true
    - node_modules/aws-sdk/**

  name: aws
  region: eu-west-1
  runtime: nodejs10.x
  memorySize: 512
  timeout: 30
  versionFunctions: false
  stage: ${opt:stage, 'dev'}
    shouldStartNameWithService: true

    webpackConfig: ./webpack.config.js
    includeModules: true


  image: node:latest
    - npm i -g serverless
    - npm ci
    - serverless config credentials --provider aws --key $AWS_ACCESS_KEY_ID --secret $AWS_SECRET_ACCESS_KEY
    - serverless deploy --verbose --stage $STAGE --region $AWS_DEFAULT_REGION


const path = require("path")
const slsw = require("serverless-webpack")
const nodeExternals = require("webpack-node-externals")

module.exports = {
  context: __dirname,
  mode: slsw.lib.webpack.isLocal ? "development" : "production",
  entry: slsw.lib.entries,
  resolve: {
    extensions: [".ts"],
    symlinks: false,
    cacheWithContext: false,
  output: {
    libraryTarget: "commonjs",
    path: path.join(__dirname, ".webpack"),
    filename: "[name].js",
  target: "node",
  externals: [nodeExternals()],
  module: {
    rules: [
        test: /\.(ts)$/,
        loader: "ts-loader",
        exclude: [
            path.resolve(__dirname, "node_modules"),
            path.resolve(__dirname, ".serverless"),
            path.resolve(__dirname, ".webpack"),
        options: {
          transpileOnly: true,
          experimentalWatchApi: true,