Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pure annotations #25

Open
fubhy opened this issue Oct 30, 2023 · 1 comment
Open

Pure annotations #25

fubhy opened this issue Oct 30, 2023 · 1 comment

Comments

@fubhy
Copy link

fubhy commented Oct 30, 2023

Hi!

We are currently manually doing all that tshy promises to do. Simplifying and outsourcing our configuration for that is definitely appealing. However, we also do some additional post-processing to add /*#__PURE__*/ annotations where appropriate (currently via https://github.com/Andarist/babel-plugin-annotate-pure-calls).

Do you have any plans on including sth. like that in your tool?

@isaacs
Copy link
Owner

isaacs commented Oct 30, 2023

I'd recommend doing stuff like this as a processing step either before tshy runs (outputting ts into ./src) or after (reading js from ./dist). I'll try to put together a little demo repo in a bit using this babel plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants