I want to import modules in a single line with ES6 modules, like it was done with the require syntax shown in the example.
var configApi = require('somemodule').config.get('services').api;
I've tried
import configApi from 'somemodule'.config.get('services').api;
and
import configApi from 'somemodule';
const api = confiApi.config.get('services').api;
but none of them have work.