RequireStrategy class

A load strategy for the require-js module system.

Inheritance

Constructors

RequireStrategy(ReloadConfiguration reloadConfiguration, String _moduleExtension, Future<Map<String, String>> _moduleProvider(String entrypoint), Future<Map<String, String>> _digestsProvider(String entrypoint), String _moduleForServerPath(String sourcePath), String _serverPathForModule(String module), String _serverPathForAppUri(String appUri))

Properties

handler Handler
A handler for strategy specific requests. [...]
read-only, override
id String
The ID for this strategy. [...]
read-only, override
loadLibrariesSnippet String
Returns a snippet of JS code that loads all Dart libraries into a libs variable.
read-only, override
loadModuleSnippet String
Returns a snippet of JS code that can be used to load a JS module. [...]
read-only, override
reloadConfiguration ReloadConfiguration
The reload configuration for this strategy, e.g. liveReload.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

bootstrapFor(String entrypoint) Future<String>
Returns the bootstrap required for this LoadStrategy. [...]
override
loadClientSnippet(String clientScript) String
JS code snippet for loading the injected client script.
override
moduleForServerPath(String serverPath) String
Returns the module for the corresponding server path. [...]
override
serverPathForAppUri(String appUri) String
Returns the server path for the app uri. [...]
override
serverPathForModule(String module) String
Returns the server path for the provided module. [...]
override
loadLibrarySnippet(String libraryUri) String
Returns a snippet of JS code that initializes a library variable that has the actual library object in DDC for libraryUri. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited