Q:

How to call an imported module?

for example before
var module = require('module');

using es2015
import module from 'module';

but if
var module = require('module')();

how should I write using es2015 ?

A:

You do it in two parts:
import module from 'module';
const instance = module();

