Class ReactComponentOptions.Jsii$Proxy

    • 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.
    • Method Detail

      • 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.js file 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.js file:

         module.exports = function override(config, env) {
           config.module.unknownContextCritical = false;
         }
         

        Default: - No rewired config.

        Specified by:
        getRewire in interface ReactRewireOptions
        See Also:
        https://github.com/timarney/react-app-rewired
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object