Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const services = []
- const serviceList = ["serviceA", "serviceB", "serviceD"];
- serviceList.map((s)=>{
- System.import("./services/" + s)
- .then((mod)=>{
- services.push(mod);
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement