Skip to content

Commit 5d415ce

Browse files
committed
chore: comment
1 parent 1e58be7 commit 5d415ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/common/refresh-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ export function virtualPreamblePlugin({
9999
handler(code, _id, options) {
100100
if (options?.ssr) return
101101

102-
// this is expected to be either `react` or `react-dom/client`.
103-
// both are optimized to be esm during dev.
102+
// this is expected to match `react`, `react-dom`, and `react-dom/client`.
103+
// they are all optimized to be esm during dev.
104104
if (isEnabled() && code.includes('__REACT_DEVTOOLS_GLOBAL_HOOK__')) {
105105
return `import ${JSON.stringify(VIRTUAL_NAME)};` + code
106106
}

0 commit comments

Comments
 (0)