an interface similar to ContentDependencies, but with its content now containing javascript code that can be dynamically imported.

interface ScriptWrappedContent<K> {
    importKeys: K[];
    importPaths: string[];
    content: string;
}

Type Parameters

  • K = string

Hierarchy (view full)

Properties

importKeys: K[]

an ordered list of unique json-encodable key assigned for each dependency path.

importPaths: string[]

an ordered list of dependency paths that your file requires for bundling.

content: string

the contents of your loaded file, further transformed to replace the import-paths with unique-keys that are easily identifiable and replaceable later on.