dynamic import from literal string instead of path in ES6

692 views Asked by At

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

There are 0 answers