Skip to content

Commit a6edb50

Browse files
committed
chore: comment
1 parent c6c29b4 commit a6edb50

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

packages/common/refresh-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export function virtualPreamblePlugin({
9898
transform: {
9999
filter: { code: /__REACT_DEVTOOLS_GLOBAL_HOOK__/ },
100100
handler(code) {
101+
// this is expected to be either `react` or `react-dom/client`
101102
if (isEnabled() && code.includes('__REACT_DEVTOOLS_GLOBAL_HOOK__')) {
102103
return `import ${JSON.stringify(name)};` + code
103104
}

packages/plugin-react/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
],
2222
"type": "module",
2323
"exports": {
24-
".": "./dist/index.js",
25-
"./preamble": "./preamble.d.ts"
24+
".": "./dist/index.js"
2625
},
2726
"scripts": {
2827
"dev": "tsdown --watch ./src --watch ../common",

packages/plugin-react/preamble.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)