[data: URLs][] are supported for importing with the following MIME types:

    • text/javascript for ES Modules
    • application/json for JSON
    • application/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:

    1. import 'data:text/javascript,console.log("hello!");';
    2. import _ from 'data:application/json,"world!"';