listSharedImports
Function: listSharedImports()
listSharedImports(
configPath):string[] |undefined
Defined in: packages/utils/src/build-config.ts:51
The sharedImports allowlist declared in a webda.config.jsonc file: the modules a @Shared model method may
import from.
Read from every service that declares a sharedImports array (the Webda/SdkGenerator parameters), merged and
deduplicated, so webdac build can enforce the allowlist without instantiating the runtime.
Parameters
configPath
string
Absolute path to webda.config.json or .jsonc.
Returns
string[] | undefined
The allowlist, or undefined when no service declares one (the compiler default applies).