Using compiled files from Brunch/Gulp/Grunt

88 views
Skip to first unread message

Mike Wyatt

unread,
Jun 6, 2014, 10:30:20 AM6/6/14
to tern...@googlegroups.com
Would this be at all possible? Typically when using one of these systems for front-end development you end up with a single javascript file using RequireJS/CommonJS. So .js/.jsx/.coffee/.ts/whatever the extension may be, you end up with a single file in a single language. Could this be used as some sort of silver bullet to get Tern supporting these seemingly unsupported languages?

Marijn Haverbeke

unread,
Jun 6, 2014, 4:08:03 PM6/6/14
to Mike Wyatt, tern-dev
The trouble with supporting additional languages is A) parsing them
during editing, which requires a language-specific error-tolerant
parser, and B) properly translating file positions between
pre-compilation and post-compilation form. Neither are terribly hard
(source maps solve most of the problems in B), but they are quite a
bit of work, and no one has put in that work yet.
> --
> You received this message because you are subscribed to the Google Groups
> "tern-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tern-dev+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages