import - JavaScript | MDN (original) (raw)
Baseline
Widely available *
The static import
declaration is used to import read-only live bindings which are exported by another module. The imported bindings are called live bindings because they are updated by the module that exported the binding, but cannot be re-assigned by the importing module.
In order to use the import
declaration in a source file, the file must be interpreted by the runtime as a module. In HTML, this is done by adding type="module"
to the