detecting JS language mode for tools

Kevin Smith zenparsing at
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: <>

More information about the es-discuss mailing list