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 9644f5e commit 64d14ceCopy full SHA for 64d14ce
packages/common/refresh-utils.ts
@@ -103,7 +103,8 @@ export function virtualPreamblePlugin({
103
handler(code, _id, options) {
104
if (options?.ssr) return
105
106
- // this is expected to be either `react` or `react-dom/client`
+ // this is expected to be either `react` or `react-dom/client`.
107
+ // both are optimized to be esm during dev.
108
if (isEnabled() && code.includes('__REACT_DEVTOOLS_GLOBAL_HOOK__')) {
109
return `import ${JSON.stringify(VIRTUAL_NAME)};` + code
110
}
0 commit comments