moduleMod

object moduleMod extends Shortcut
trait Shortcut
class Object
trait Matchable
class Any

Type members

Classlikes

@JSImport("module", "Module") @native @JSType
class ModuleCls extends StObject with Module
@JSImport("module", "SourceMap") @native @JSType
class SourceMap extends StObject
@native @JSType
trait SourceMapPayload extends StObject
Companion
object
Companion
class
@native @JSType
trait SourceMapping extends StObject
Companion
object
Companion
class
@JSImport("module") @native @JSType
class ^() extends StObject with Module
object global

Types

type _To = Object & Instantiable2[String, UndefOr[Module], Module]

Value members

Concrete methods

@JSImport("module", "Module") @native
def Module: Instantiable2[String, UndefOr[Module], Module]
@inline
def Module_=(x: Instantiable2[String, UndefOr[Module], Module]): Unit
override def _to: Object & Instantiable2[String, UndefOr[Module], Module]
Definition Classes
Shortcut
@JSImport("module", "builtinModules") @native
def builtinModules: Array[String]
@inline
def builtinModules_=(x: Array[String]): Unit
@inline
@inline
def createRequire(path: String): NodeRequire
@inline
def findSourceMap(path: String): SourceMap
@inline
def findSourceMap(path: String, error: Error): SourceMap
@inline
def runMain(): Unit
@inline

Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports. It does not add or remove exported names from the ES Modules.

Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports. It does not add or remove exported names from the ES Modules.

@inline
def wrap(code: String): String

Concrete fields

@JSImport("module") @native
val ^: Object & Instantiable2[String, UndefOr[Module], Module]