SniberbS
Reactiflux2y ago
10 replies
Sniberb

snowberb – 08-55 Jul 4

Is it possible to use variables while importing a module?
I'm trying to dynamically import some module files but when I use variables it doesnt find the file

Works:
  await import(`module/lib/module.css`);


Doesn't work:
  await import(LIBRARY_ROUTES[library].css);
Was this page helpful?