dynamic import()
V8.dev ⟩ Dynamic import() ⭐️
JS.info ⟩
import a module on-demand
compute the module specifier at runtime
import a module from within a regular script (non-module)
import(specifier) returns a promise for the module namespace object of the requested module, which is created after fetching, instantiating, and evaluating all of the module’s dependencies, as well as the module itself.
import is NOT a function, it's NOT even an object.
Last updated