Skip to content

Commit 64d14ce

Browse files
committed
chore: comment
1 parent 9644f5e commit 64d14ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/common/refresh-utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ export function virtualPreamblePlugin({
103103
handler(code, _id, options) {
104104
if (options?.ssr) return
105105

106-
// this is expected to be either `react` or `react-dom/client`
106+
// this is expected to be either `react` or `react-dom/client`.
107+
// both are optimized to be esm during dev.
107108
if (isEnabled() && code.includes('__REACT_DEVTOOLS_GLOBAL_HOOK__')) {
108109
return `import ${JSON.stringify(VIRTUAL_NAME)};` + code
109110
}

0 commit comments

Comments
 (0)