Look at these examples:
eval(`import("./example.js")`);
Promise.resolve(`import("./example.js")`).then(eval);
They should be the same, shouldn't they?
Structure:
index.html (here is included test.js)
/js
test.js
example.js
But if you take one of them and place into test.js file you will see different behaviour, why?