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

Introduce a flag for decorator rewrite #1164

@theseanl

Description

@theseanl

I would like to request to introduce a flag so that consumers can include googmodule transformer but not transformDecoratorsOutputForClosurePropertyRenaming transformer.

My use case is to update tsickle in tscc, but to keep a decorator transformer that has been used in tscc (using the same goog.reflect.objectProperty) before it has landed in tsickle (in #1125), so as not to break existing projects using tscc.

As I understand, the implementation in tsickle does not do any measures to prevent closure compiler for inlining decorated class methods. In my previous experience, closure compiler often breaks such codes that contain method decorators, and I've put some additional transformations in tscc to remedy this. I suppose that there already exist projects which uses tsickle and uses method decorators too -- if so, how does one prevent inlining of methods there? By some post-ts transformation? Or do recent versions of closure compiler automatically detect such patterns emitted by tsickle and do not inline those?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions