✘ [ERROR] The JSX syntax extension is not currently enabled
### Node Version

v18.19.1

### NPM/Yarn/PNPM Version

Yarn 4.1.1

### Strapi Version

5.8.1

### Operating System

MacOS

### Database

MySQL

### Javascript or Typescript

Javascript

### Reproduction URL

_No response_

### Bug Description

After used Codemod upgrade strapi version to the latest version, yarn develop will throw error like below screenshot:

<img width="950" alt="Image" src="https://github.com/user-attachments/assets/2e4b9a61-85db-409f-8321-5f0bdc5ada60" />

event set the vite config like that:
// src/admin/vite.configs.ts
**import { mergeConfig } from "vite";

export default (config: any) => {
  // Important: always return the modified config
  return mergeConfig(config, {
    esbuild: {
      loader: { ".js": "jsx" },
    },
  });
};**

### Steps to Reproduce

none

### Expected Behavior

can run the strapi normally

### 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).