If in file1
, the code is like this:
import * as Things1 from "../things1"
import * as Things2 from "../things2"
export {
Things1,
Things2,
}
and in file2
, it looks like this:
import * as Distributor from "../file1"
import * as Things3 from "../../things3"
How can I export it to look like this:
export {
Things1,
Things2,
Things3,
}
in file2
?
I'm trying to avoid using:
export const Things1 = Distributor.Things1;
since there are multiple variables being exported in my actual file.