[data:
URLs][] are supported for importing with the following MIME types:
text/javascript
for ES Modulesapplication/json
for JSONapplication/wasm
for Wasm
data:
URLs only resolve [Bare specifiers][Terminology] for builtin modules
and [Absolute specifiers][Terminology]. Resolving
[Relative specifiers][Terminology] does not work because data:
is not a
[special scheme][]. For example, attempting to load ./foo
from data:text/javascript,import "./foo";
fails to resolve because there
is no concept of relative resolution for data:
URLs. An example of a data:
URLs being used is:
import 'data:text/javascript,console.log("hello!");';
import _ from 'data:application/json,"world!"';