1
1
diff --git a/node_modules/@parcel/transformer-typescript-types/lib/TSModule.js b/node_modules/@parcel/transformer-typescript-types/lib/TSModule.js
2
- index 981ca7b..6cd9ebb 100644
2
+ index 981ca7b..c02862b 100644
3
3
--- a/node_modules/@parcel/transformer-typescript-types/lib/TSModule.js
4
4
+++ b/node_modules/@parcel/transformer-typescript-types/lib/TSModule.js
5
5
@@ -33,7 +33,7 @@ class TSModule {
@@ -11,8 +11,19 @@ index 981ca7b..6cd9ebb 100644
11
11
}
12
12
}
13
13
14
+ @@ -52,7 +52,9 @@ class TSModule {
15
+ }
16
+
17
+ addLocal(name, node) {
18
+ - this.bindings.set(name, node);
19
+ + const bindings = this.bindings.get(name) || new Set();
20
+ + this.bindings.set(name, bindings);
21
+ + bindings.add(node);
22
+
23
+ if (name !== 'default') {
24
+ this.names.set(name, name);
14
25
diff --git a/node_modules/@parcel/transformer-typescript-types/lib/TSModuleGraph.js b/node_modules/@parcel/transformer-typescript-types/lib/TSModuleGraph.js
15
- index f346712..830f180 100644
26
+ index f346712..18a476e 100644
16
27
--- a/node_modules/@parcel/transformer-typescript-types/lib/TSModuleGraph.js
17
28
+++ b/node_modules/@parcel/transformer-typescript-types/lib/TSModuleGraph.js
18
29
@@ -48,17 +48,13 @@ class TSModuleGraph {
@@ -37,7 +48,23 @@ index f346712..830f180 100644
37
48
}
38
49
39
50
if (module.used.has(name)) {
40
- @@ -130,8 +126,8 @@ class TSModuleGraph {
51
+ @@ -81,10 +77,11 @@ class TSModuleGraph {
52
+ return ts.visitEachChild(node, visit, context);
53
+ };
54
+
55
+ - let node = module.bindings.get(name);
56
+ -
57
+ - if (node) {
58
+ - ts.visitEachChild(node, visit, context);
59
+ + let bindings = module.bindings.get(name);
60
+ + if (bindings) {
61
+ + for (let node of bindings) {
62
+ + ts.visitEachChild(node, visit, context);
63
+ + }
64
+ }
65
+ }
66
+
67
+ @@ -130,8 +127,8 @@ class TSModuleGraph {
41
68
42
69
return {
43
70
module: m,
@@ -48,15 +75,15 @@ index f346712..830f180 100644
48
75
};
49
76
}
50
77
51
- @@ -223,6 +219 ,7 @@ class TSModuleGraph {
78
+ @@ -223,6 +220 ,7 @@ class TSModuleGraph {
52
79
exportedNames.set(e.name, e.module);
53
80
} // Assign unique names across all modules
54
81
55
82
+ let importedSymbolsToUpdate = [];
56
83
57
84
for (let m of this.modules.values()) {
58
85
for (let [orig, name] of m.names) {
59
- @@ -230,7 +227 ,13 @@ class TSModuleGraph {
86
+ @@ -230,7 +228 ,13 @@ class TSModuleGraph {
60
87
continue;
61
88
}
62
89
@@ -71,7 +98,7 @@ index f346712..830f180 100644
71
98
continue;
72
99
}
73
100
74
- @@ -242,6 +245 ,37 @@ class TSModuleGraph {
101
+ @@ -242,6 +246 ,37 @@ class TSModuleGraph {
75
102
}
76
103
}
77
104
0 commit comments