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 5d415ce commit e2861c9Copy full SHA for e2861c9
packages/common/refresh-utils.ts
@@ -96,8 +96,9 @@ export function virtualPreamblePlugin({
96
},
97
transform: {
98
filter: { code: /__REACT_DEVTOOLS_GLOBAL_HOOK__/ },
99
- handler(code, _id, options) {
+ handler(code, id, options) {
100
if (options?.ssr) return
101
+ if (id === runtimePublicPath) return
102
103
// this is expected to match `react`, `react-dom`, and `react-dom/client`.
104
// they are all optimized to be esm during dev.
0 commit comments