import{ defineConfig }from"vite";importreactfrom"@vitejs/plugin-react-swc";exportdefaultdefineConfig({plugins: [react()], }); This new release also include a runtime check for React refresh boundaries. When the conditions are not met (most of the time, exporting React components alongside fu...
npm i -D @vitejs/plugin-react-swc Usage import { defineConfig } from "vite"; import react from "@vitejs/plugin-react-swc"; export default defineConfig({ plugins: [react()], }); Caveats This plugin has limited options to enable good performances and be transpiler agnostic. Here is the...
Speed up your Vite dev server with SWC. Contribute to Dunqing/vite-plugin-react-swc development by creating an account on GitHub.
react({plugins:[["@swc/plugin-styled-components",{}]]}); devTarget Set the target for SWC in dev. This can avoid to down-transpile private class method for example. For production target, seehttps://vitejs.dev/config/build-options.html#build-target. ...
@vitejs/plugin-react-swc/index.d.ts Version: 1.25 kBTypeScriptView Raw 1import{ ParserConfig, JscTarget }from"@swc/core"; 2import{ PluginOption }from"vite"; 3typeOptions = { 4/** 5* Control where the JSX factory is imported from. ...
@vitejs/plugin-react-swc/LICENSE Version: 1.1 kBPlain TextView Raw 1 MIT License 2 3 Copyright (c) Arnaud Barré (https://github.com/ArnaudBarre) 4 5 Permission is hereby granted, free of charge, to any person obtaining a copy 6 of this software and associated documentation file...
Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} Dunqing / vite-plugin-react-swc Public forked from vitejs/vite-plugin-react-swc Notifications You must be signed in to change notification settings F...
Enable SWC at build time. react({ plugins: [["@swc/plugin-styled-components", {}]] }); devTarget Set the target for SWC in dev. This can avoid to down-transpile private class method for example. For production target, see https://vitejs.dev/config/build-options.html#build-target. ...
Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} Dunqing / vite-plugin-react-swc Public forked from vitejs/vite-plugin-react-swc Notifications You must be signed in to change notification settings For...
Cancel Create saved search Sign in Sign up Reseting focus {{ message }} Dunqing / vite-plugin-react-swc Public forked from vitejs/vite-plugin-react-swc Notifications You must be signed in to change notification settings Fork 0 Star 0 ...