Setting library usage scopes per directory: What is the difference between these values?

In my node.js project I want to set library usage per directory (but the question is the same if I was to use a global setting).

I don't quite see the difference between these two entries: "Node.js Globals" and "Node.js v2.3.4 Core Modules", the latter installed by WebStorm from source in Settings -> Languages & Frameworks -> Node.js and NPM.

.

In the same context, if I select "ECMAScript 6", do I still need "HTML 5 / ECMAScript 5"?

2 comments
Comment actions Permalink

These are different libraries. "Node.js Globals" is a predefined library included in NodeJS plugin (node-globals-stub.js) - it contains stubs of basic Node.js methods, like require().
"Node.js Core Modules" has to be downloaded separately - this library includes files from http://nodejs.org/dist/v0.10.26/node-v2.3.4.tar.gz: these are core Node.js modules (fs, cluster, tty, util, etc.) sources.

In the same context, if I select "ECMAScript 6", do I still need "HTML 5 / ECMAScript 5"?


Yes. The former includes new ES6 types (Map, Promise, etc.) only. ES5 types are defined in the latter one. So you need both

0

Please sign in to leave a comment.