Use the es6 style import for modules. Using this style also provides the benefit of working intellisense in VS2015.
Unfortunately, as per the comment, not all libraries can be imported in this way. This means that for those libraries there is no intellisense in VS.
Given imports must be defined at module level many of them have moved from being declared inline to the top (they're hoisted anyway). However, I've left the 'old' style require lines inline, where they're used.
Use the es6 style import for modules. Using this style also provides the benefit of working intellisense in VS2015.
Unfortunately, as per the comment, not all libraries can be imported in this way. This means that for those libraries there is no intellisense in VS.
Given imports must be defined at module level many of them have moved from being declared inline to the top (they're hoisted anyway). However, I've left the 'old' style
require
lines inline, where they're used.