I'd like to create an array of the modules I am importing into Main.js
file. How might I access the object that contains the imported modules?
EDIT To further explain, I am importing multiple classes into a Main.js
file containing a Main class. Each of these classes comes from their own individual file, giving me import statements like this:
import Header from './features/Header.js';
import ImageStrip from './features/ImageStrip.js';
import AreaChart from './features/AreaChart.js';
import Axes from './features/Axes.js';
Is there a JavaScript object that contains the modules that are imported, for example something like [ Header, ImageStrip, AreaChart, Axes ]
? Or is it possible to create one?