diff --git a/packages/plugin-react/src/index.ts b/packages/plugin-react/src/index.ts index c513c4e3..43e62c97 100644 --- a/packages/plugin-react/src/index.ts +++ b/packages/plugin-react/src/index.ts @@ -235,7 +235,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] { filename: id, sourceFileName: filepath, // Required for esbuild.jsxDev to provide correct line numbers - // This crates issues the react compiler because the re-order is too important + // This creates issues the react compiler because the re-order is too important // People should use @babel/plugin-transform-react-jsx-development to get back good line numbers retainLines: getReactCompilerPlugin(plugins) != null diff --git a/packages/plugin-react/src/refreshUtils.js b/packages/plugin-react/src/refreshUtils.js index 0ac3c6ca..2576164d 100644 --- a/packages/plugin-react/src/refreshUtils.js +++ b/packages/plugin-react/src/refreshUtils.js @@ -17,7 +17,7 @@ const enqueueUpdate = debounce(async () => { }, 16) // Taken from https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/lib/runtime/RefreshUtils.js#L141 -// This allows to resister components not detected by SWC like styled component +// This allows to register components not detected by SWC like styled component function registerExportsForReactRefresh(filename, moduleExports) { for (const key in moduleExports) { if (key === '__esModule') continue