Skip to content

Commit 626555c

Browse files
ocombematsko
authored andcommitted
fix(tsc-wrapped): fix metadata symbol reference
1 parent a9ef858 commit 626555c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/tsc-wrapped/src/bundler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export class MetadataBundler {
292292
// keep one entry and replace the others by references
293293
names.forEach((name: string, i: number) => {
294294
if (i !== reference) {
295-
result[name] = {__symbolic: 'reference', name: declaredName};
295+
result[name] = {__symbolic: 'reference', name: names[reference]};
296296
}
297297
});
298298
}

packages/tsc-wrapped/test/bundler_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ describe('metadata bundler', () => {
219219
expect(A2.name).toEqual('A');
220220
expect(B1.__symbolic).toEqual('class');
221221
expect(B2.__symbolic).toEqual('reference');
222-
expect(B2.name).toEqual('B');
222+
expect(B2.name).toEqual('B1');
223223
});
224224
});
225225

0 commit comments

Comments
 (0)