Hello, I have a .js file in which there are several functions that I am using on a page.
Is there a way to import all the functions at once, rather than individually? at the moment I have this:
import {Scotland} from 'public/xyz.js';
import {North} from 'public/xyz';
import {East} from 'public/xyz.js';
import {SouthEast} from 'public/xyz.js';
import {South} from 'public/xyz.js';
import {West} from 'public/xyz.js';
...
(there are about 20 of these)
can i do something like:
import {Scotland, North, East, etc...} from 'public/xyz';
or
import {Scotland},{North},{East}, etc... from 'public/xyz';
just to save on lines in the page code?
Thanks in advance!