Skip to content

Commit 0808c82

Browse files
cbbfcdbobihuang
andauthored
fix: exception caused by duplicate registration of functions with the same name (#19)
Co-authored-by: bobihuang <bobihuang@tencent.com>
1 parent 491fd76 commit 0808c82

File tree

10 files changed

+849
-1
lines changed

10 files changed

+849
-1
lines changed

client/intercept.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ __webpack_require__.i.push(function (options) {
3434
self.__PREFRESH__.register(type, currentModuleId + ' ' + id);
3535
};
3636
};
37-
reg();
37+
reg(moduleObject.id);
3838
try {
3939
originalFactory.call(this, moduleObject, moduleExports, webpackRequire);
4040
} finally {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Case with-same-name-component: Step 0
2+
3+
## Changed Files
4+
5+
6+
## Asset Files
7+
- Bundle: bundle.js
8+
9+
## Manifest
10+
11+
12+
## Update

0 commit comments

Comments
 (0)