From abb43be635fd53f10279c4ab5e79c8cf2a236a1d Mon Sep 17 00:00:00 2001 From: kibeom lee <46297213+lkb85@users.noreply.github.com> Date: Thu, 6 Feb 2025 00:31:56 +0900 Subject: [PATCH] Fix typos in comments --- packages/plugin-react/src/index.ts | 2 +- packages/plugin-react/src/refreshUtils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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