detecting JS language mode for tools

Kevin Smith zenparsing at gmail.com
Mon Jan 27 20:43:55 PST 2014


>
>
> My argument was that Node.js has both non-module and module files with a
> common suffix, .js.
>

Yes - but Node-modules and non-modules can be parsed the same way, so a
common extension makes sense.  But when a file needs to be parsed a
different way in Node, how's that's done?  By registered file extensions,
of course.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140127/722e53ca/attachment-0001.html>


More information about the es-discuss mailing list