Strapi 5 local plugins : size has significantly increased
### Node Version

20.11.1

### NPM/Yarn/PNPM Version

1.22.22

### Strapi Version

5.9.0

### Operating System

Linux (Debian/Ubuntu)

### Database

PostgreSQL

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

Hello,

I recently upgraded from Strapi 4 to Strapi 5.

I'm using four local plugins that are part of the project.

I kept the same configuration in config/plugins.ts:

```
export default ({ env }) => ({
  ...
  'plugin-name': {
    enabled: true,
    resolve: './src/plugins/plugin-name',
  },
});
```

The issue is that the size of each plugin has significantly increased after migrating to Strapi 5 (from ~300mo to 1.6go of each node_modules plugin).

This is causing deployment issues for the application.

My question is: Is there a better way to handle local plugins in Strapi 5?

Thanks in advance for your help!

### Steps to Reproduce

1. Create a Strapi 5 project
2. Create a local plugin

### Expected Behavior

The expected behavior is that the plugin's node_modules directory is smaller or that another method exists to have multiple local plugins.

### Logs

```shell

```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).