Skip to content

Commit b5945c9

Browse files
committed
Revert "fix: avoid key collision in React refresh registration (fix #116)"
This reverts commit 82b45c3.
1 parent 82b45c3 commit b5945c9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/plugin-react/src/refreshUtils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ function registerExportsForReactRefresh(filename, moduleExports) {
2525
if (key === '__esModule') continue
2626
const exportValue = moduleExports[key]
2727
if (exports.isLikelyComponentType(exportValue)) {
28-
// `export` is required to avoid key collision when renamed export shadow local component name
29-
// https://github.com/vitejs/vite-plugin-react/issues/116
30-
exports.register(exportValue, filename + ' export ' + key)
28+
exports.register(exportValue, filename + ' ' + key)
3129
}
3230
}
3331
}

0 commit comments

Comments
 (0)