vite-plugin-react-swc
vite-plugin-react-swc copied to clipboard
Speed up your Vite dev server with SWC
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...
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$...
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...
### 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...
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...
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) | [](https://docs.renovatebot.com/merge-confidence/) |...
I began seeing many of these syntax errors in the terminal when starting up my Vite app:  I am using version 3.6.0 of the vite-plugin-swc package, and am seeing...
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...