detecting JS language mode for tools
brendan at mozilla.com
Mon Jan 27 16:57:36 PST 2014
John Barton wrote:
> It's pretty clear from NPM experience that a new suffix is not
> needed for out-of-line modules. Or are you suggesting that Node.js
> lacks tooling? I'm not offended, just trying to understand.
> What about the node experience helps? They have only one type of
> input, modules, ergo only one suffix.
No, their non-module main programs are in files with names ending in .js.
> For NPM read AMD/require.js too.
No, <script src=foo.js> interops with AMD/require.js and the .js suffix
is used everywhere.
More information about the es-discuss