We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e58be7 commit 5d415ceCopy full SHA for 5d415ce
packages/common/refresh-utils.ts
@@ -99,8 +99,8 @@ export function virtualPreamblePlugin({
99
handler(code, _id, options) {
100
if (options?.ssr) return
101
102
- // this is expected to be either `react` or `react-dom/client`.
103
- // both are optimized to be esm during dev.
+ // this is expected to match `react`, `react-dom`, and `react-dom/client`.
+ // they are all optimized to be esm during dev.
104
if (isEnabled() && code.includes('__REACT_DEVTOOLS_GLOBAL_HOOK__')) {
105
return `import ${JSON.stringify(VIRTUAL_NAME)};` + code
106
}
0 commit comments