Skip to main content

Class: Importer

frontend.Importer

Bundled node modules (Frontend dependencies) loading script

Implements#

  • Required<TCromwellNodeModules>

Table of contents#

Constructors#

Properties#

Methods#

Constructors#

constructor#

• new Importer()

Defined in#

system/core/frontend/src/helpers/importer.ts:36

Properties#

canShowInfo#

• canShowInfo: boolean = false

Defined in#

system/core/frontend/src/helpers/importer.ts:25


hasBeenExecuted#

• hasBeenExecuted: boolean = false

Implementation of#

Required.hasBeenExecuted

Defined in#

system/core/frontend/src/helpers/importer.ts:27


importStatuses#

• importStatuses: Object = {}

Implementation of#

Required.importStatuses

Defined in#

system/core/frontend/src/helpers/importer.ts:20


imports#

• imports: Object = {}

Implementation of#

Required.imports

Defined in#

system/core/frontend/src/helpers/importer.ts:21


moduleExternals#

• moduleExternals: Object = {}

Implementation of#

Required.moduleExternals

Defined in#

system/core/frontend/src/helpers/importer.ts:22


modules#

• modules: Record<string, any>

Implementation of#

Required.modules

Defined in#

system/core/frontend/src/helpers/importer.ts:24


prefix#

• prefix: string

Implementation of#

Required.prefix

Defined in#

system/core/frontend/src/helpers/importer.ts:26


scriptStatuses#

• scriptStatuses: Object = {}

Implementation of#

Required.scriptStatuses

Defined in#

system/core/frontend/src/helpers/importer.ts:23

Methods#

importModule#

â–¸ importModule(moduleName, namedExports?): boolean | Promise<boolean>

Import single module with its dependencies

Parameters#

NameType
moduleNameany
namedExportsstring[]

Returns#

boolean | Promise<boolean>

Implementation of#

Required.importModule

Defined in#

system/core/frontend/src/helpers/importer.ts:87


importScriptExternals#

â–¸ importScriptExternals(metaInfo): Promise<boolean>

Parameters#

NameType
metaInfoundefined | TScriptMetaInfo

Returns#

Promise<boolean>

Implementation of#

Required.importScriptExternals

Defined in#

system/core/frontend/src/helpers/importer.ts:387


setIsServerSide#

â–¸ setIsServerSide(isServerSide): any

Parameters#

NameType
isServerSideany

Returns#

any

Defined in#

system/core/frontend/src/helpers/importer.ts:79


setPrefix#

â–¸ setPrefix(prefix): any

Parameters#

NameType
prefixany

Returns#

any

Implementation of#

Required.setPrefix

Defined in#

system/core/frontend/src/helpers/importer.ts:77


setServerPublicDir#

â–¸ setServerPublicDir(dir): any

Parameters#

NameType
dirany

Returns#

any

Defined in#

system/core/frontend/src/helpers/importer.ts:78