The current situation is like follows:
// ./img/index.js:
import some-image from "./some-image.png";
import some-other-image from "./some-other-image.png";
// About 50 of these imports
export const imageArray = [some-image, some-other-image] //...and the other 48 imported images go in this array
This turn out, when typed in full, to be quite the lengthy export statement. What I want to achieve is fill the export imageArray with all the imported image in a more automated way without having to copy paste the var names from import.
Something like:
export const imageArray = [this.Imports];
Is something like this possible?