2 ms·
This works just fine in Node.js 14.15: // test2.mjs console.log("works!"); // test.mjs const m = "./test2.mjs"; import(m)
by realityking 6y ago
This works just fine in Node.js 14.15:
// test2.mjs
console.log("works!");
// test.mjs
const m = "./test2.mjs";
import(m)