dynamic import from literal string instead of path in ES6

Viewed 289

is it possible to import from a js string?

import(`alert("Hello")`);

which gives us more control over http fetching, like loading from protected url with access token.

0 Answers
Related