0

Is it possible to import modules with 'import' inside an eval in JavaScript?

Something like this idk

let test = index;

eval(`import { a } from './${test}.js'`);
Tasos K.
  • 7,979
  • 7
  • 39
  • 63
Alecs
  • 1

0 Answers0