-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
generate jsdoc/typescript/flow #58
Comments
That's an interesting idea. I don't see any reason in principle why that couldn't happen, though it's not something I'm particularly familiar with |
I extended a simple output: with jsdocs the first one (bundle.js) can be compile with the SIMPLE mode Simple: as you can see a tremendous slim down ;) |
+1 for making this work better on closure compiler, thanks for putting in the work @mxab |
an maybe very experimental thought would be that if it contains proper jsdocs closure compiler's refasterJS feature could refactor the code and put in some short methods for common not minifiable calls let's say for all
|
@mxab thanks for the sample code, it's very helpful. It's likely that the internals will change a bit due to e.g. #9, so it's probably best for us to hold off on adding jsdoc stuff for the moment, but I'm definitely keen to explore this in future (maybe adding e.g. TypeScript annotations or Flow types would be another option – For things like repeated |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We have TypeScript types now |
Hi,
would it be possible to produce jsdoc on the generated code so it could be minified with closure compilers advanced mode?
The text was updated successfully, but these errors were encountered: