Classes
TargetableSet
A factory and manager for Targetable instances. This class wraps around a TargetProvider, which identifies it as "your" Targetable and enables automatic interception of targets.
Typedefs
TargetablePublisher : function
Callback function which runs before committing this module's list of requested transforms to the build. Invoked as an intercept to builtins.transformModules, this is the typical time to invoke your own target with your custom API.
A factory and manager for Targetable instances. This class wraps around a TargetProvider, which identifies it as "your" Targetable and enables automatic interception of targets.
-
TargetableSet
-
instance
- .module(modulePath, [publisher]) ⇒
TargetableModule - .esModule(modulePath, [publisher]) ⇒
TargetableESModule - .esModuleArray(modulePath, [publisher]) ⇒
TargetableESModuleArray - .esModuleObject(modulePath, [publisher]) ⇒
TargetableESModuleObject - .reactComponent(modulePath, [publisher]) ⇒
TargetableReactComponent - .setSpecialFeatures(...Feature)
- .defineEnvVars(sectionName, variables)
- .module(modulePath, [publisher]) ⇒
-
static
- .using(targets) ⇒
TargetableSet
- .using(targets) ⇒
-
Returns: TargetableModule — Returns an instance of TargetableModule.
Parameters
stringTargetablePublisherbuiltins.transformModules.Returns: TargetableESModule — Returns an instance of TargetableESModule.
Parameters
stringTargetablePublisherbuiltins.transformModules.Returns: TargetableESModuleArray — Returns an instance of TargetableESModuleArray.
Parameters
stringTargetablePublisherbuiltins.transformModules.Returns: TargetableESModuleObject — Returns an instance of TargetableESModuleObject.
Parameters
stringTargetablePublisherbuiltins.transformModules.Returns: TargetableReactComponent — Returns an instance of TargetableReactComponent
Parameters
stringTargetablePublisherbuiltins.transformModules.Taps the builtin specialFeatures target and sets the supplied feature flags.
Parameters
string | Array.<string> | object.<string, boolean>Tap the builtin envVarDefinitions target to define new environment variables.
Parameters
stringArray.<EnvVarDefinition>Creates a new TargetableSet bound to a TargetProvider
Returns: Parameters
TargetProviderCallback function which runs before committing this module's list of requested transforms to the build. Invoked as an intercept to builtins.transformModules, this is the typical time to invoke your own target with your custom API.
this: {TargetableModule}
Parameters
TargetableModulethis is not available)Source Code: pwa-studio/packages/pwa-buildpack/lib/WebpackTools/targetables/TargetableSet.js