I am looking to focus on using ES6 as the output for a node server-side app that I plan to run on the cutting-edge iojs distribution, which hopefully has support for the latest ES6 syntax.
However, I'm unsure about how to integrate standard NPM libraries with the new import syntax?
require
is now considered outdated. After reading through this answer,
import http from "http";
import request from "request";
produces an error:
error TS2307: Cannot find module 'http'
Is there a way to utilize these standard Node libraries, or other NPM modules that are already available, without going through a complicated transpile/babel build process?