Is it possible to import module into an attribute of object


#1

I’d like to import some renderers into an object. But the following code cause syntax error.

const R = {};
import R.stack from "./renderer/Stack.es6";
import R.timeline from "./renderer/Timeline.es6";