Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Purify should annotate the top level function call before parenthesis. #45

@mhevery

Description

@mhevery

Consider this line

export const Injectable: InjectableDecorator = <InjectableDecorator>makeDecorator('Injectable');

The cast <InjectableDecorater> causes this code in tsickle

export const Injectable = (/**@type{InjectableDecortaro}*/makeDecorator('Injectable'));

This generates (notice the parenthesis)

var Injectable = (/*@__PURE__*/ makeDecorator('Injectable'));

Which than makes it retained as parenthesis defeats the @__PURE__. This than retains large portion of code.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions