Package io.github.cdklabs.projen.web
Class ReactComponentOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.web.ReactComponentOptions.Jsii$Proxy
-
- All Implemented Interfaces:
ReactComponentOptions,ReactRewireOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ReactComponentOptions
@Stability(Experimental) @Internal public static final class ReactComponentOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ReactComponentOptions
An implementation forReactComponentOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.web.ReactComponentOptions
ReactComponentOptions.Builder, ReactComponentOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ReactComponentOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theReactComponentOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)Map<String,Object>getRewire()(experimental) Rewire webpack configuration.BooleangetTypescript()(experimental) Whether to apply options specific for TypeScript React projects.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(ReactComponentOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theReactComponentOptions.Builder.
-
-
Method Detail
-
getTypescript
public final Boolean getTypescript()
Description copied from interface:ReactComponentOptions(experimental) Whether to apply options specific for TypeScript React projects.Default: false
- Specified by:
getTypescriptin interfaceReactComponentOptions
-
getRewire
public final Map<String,Object> getRewire()
Description copied from interface:ReactRewireOptions(experimental) Rewire webpack configuration.Use this property to override webpack configuration properties provided by create-react-app, without needing to eject.
This property will create a
config-overrides.jsfile in your root directory, which will contain the desired rewiring code.To override the configuration, you can provide simple key value pairs. Keys take the form of js code directives that traverse to the desired property. Values should be JSON serializable objects.
For example, the following config:
rewire: { "module.unknownContextCritical": false }Will translate to the following
config-overrides.jsfile:module.exports = function override(config, env) { config.module.unknownContextCritical = false; }Default: - No rewired config.
- Specified by:
getRewirein interfaceReactRewireOptions- See Also:
- https://github.com/timarney/react-app-rewired
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-