Skip to content

Commit c57b527

Browse files
authored
fix: correct typo in code comment (#410)
1 parent e42e36a commit c57b527

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/plugin-react/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
235235
filename: id,
236236
sourceFileName: filepath,
237237
// Required for esbuild.jsxDev to provide correct line numbers
238-
// This crates issues the react compiler because the re-order is too important
238+
// This creates issues the react compiler because the re-order is too important
239239
// People should use @babel/plugin-transform-react-jsx-development to get back good line numbers
240240
retainLines:
241241
getReactCompilerPlugin(plugins) != null

packages/plugin-react/src/refreshUtils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const enqueueUpdate = debounce(async () => {
1717
}, 16)
1818

1919
// Taken from https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/lib/runtime/RefreshUtils.js#L141
20-
// This allows to resister components not detected by SWC like styled component
20+
// This allows to register components not detected by SWC like styled component
2121
function registerExportsForReactRefresh(filename, moduleExports) {
2222
for (const key in moduleExports) {
2323
if (key === '__esModule') continue

0 commit comments

Comments
 (0)