rollup / plugins

🍣 The one-stop shop for official Rollup plugins
MIT License
3.57k stars 568 forks source link

feat(typescript): add transformers factory #1668

Open Haringat opened 5 months ago

Haringat commented 5 months ago

Rollup Plugin Name: typescript

This PR contains:

Are tests included?

Breaking Changes?

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

resolves #1667

Description

This allows creating custom transformers in the typescript plugin together ahead-of-time in a factory function. This allows for shorter rollup configs in certain cases and enables using similar factory-style transformers like the angular compiler API.

This also cleans up a few places minor internals in the typescript plugin (missing parameter descriptions, deprecated APIs, generic identifiers)

Haringat commented 4 months ago

@shellscape Would you mind reviewing this?

shellscape commented 4 months ago

@Haringat I'm backed up at work. will be end of the week before I circle back to open source.

Haringat commented 2 months ago

@shellscape what calendar are we going with?

shellscape commented 2 months ago

I'm using the Julian calendar.