Get array with file names in build time
Just call function passing directory parameter:
import files from "files.macro";
const allImages = files("./assets/images");
// Will transpiled to
// ↓ ↓ ↓ ↓ ↓ ↓
const allImages = [ 'avatar.png', 'catalog.png' ]
MIT