vite-plugin-react-swc icon indicating copy to clipboard operation
vite-plugin-react-swc copied to clipboard

Speed up your Vite dev server with SWC

Results 29 vite-plugin-react-swc issues
Sort by recently updated
recently updated
newest added

When I try to create a new Vite project using `yarn create vite` and selecting React with Typescript + SWC, I can perform `yarn build` just fine, however when I...

upstream bug

Hi there, I have a React application where I integrated with my backend server as per https://vitejs.dev/guide/backend-integration: ``` import RefreshRuntime from "http://localhost:5173/@react-refresh"; RefreshRuntime.injectIntoGlobalHook(window); window.$RefreshReg$ = () => { }; window.$RefreshSig$...

need reproduction

I'm using reason-react to compile code to js, so my input does have contain raw jsx but pre-compiled calls to the react apis. I found that my files were being...

question

### Describe the bug Hi, I'm having issues with HMR not reloading certain modules. The issue seems to only occur when using react-router, react-redux and a lazily-loaded class-based component. In...

bug

Update: Support for TC39 decorators has been shipped in esbuild 0.21, included in Vite 5.3. SWC support is still not fully there, see https://github.com/swc-project/swc/pull/9488 As the goal of this plugin...

breaking change

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@emotion/react](https://redirect.github.com/emotion-js/emotion/tree/main#readme) ([source](https://redirect.github.com/emotion-js/emotion)) | [`^11.13.0` -> `^11.13.3`](https://renovatebot.com/diffs/npm/@emotion%2freact/11.13.0/11.13.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@emotion%2freact/11.13.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) |...

dependencies

I began seeing many of these syntax errors in the terminal when starting up my Vite app: ![image](https://github.com/user-attachments/assets/86ef3cd7-db53-40a2-9ea6-f97bacab9ca7) I am using version 3.6.0 of the vite-plugin-swc package, and am seeing...

upstream bug

Adds "react" and "react-dom" to `resolve.dedupe` in the `config` hook. @vitejs/plugin-react does the same at https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/src/index.ts#L289-L291. For some context, the missing dedupe of these React packages caused issues in my...

Will there be instructions on how to use the new React Compiler given that it's babel based?

Previously the HMR code would use window as the global scope which is undefined in webworkers. This change uses some code lifted from @vitejs/plugin-react to check if the context is...

question