method
ModuleGraph.import
specifier: string
): Promise<T>;
Load specifier (resolved against process.cwd() when relative) and instantiate it and its dependencies into this graph, evaluating what has not been evaluated in this graph yet.
The first module imported into a graph is its main module: import.meta.main is true in it and in no other module of the graph.
@param specifier
module specifier, as for import()
@returns
the module's namespace object for this graph