@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:29.057Z") @Stability(value=Experimental) public interface ReactRewireOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
ReactRewireOptions.Builder
A builder for
ReactRewireOptions |
static class |
ReactRewireOptions.Jsii$Proxy
An implementation for
ReactRewireOptions |
| Modifier and Type | Method and Description |
|---|---|
static ReactRewireOptions.Builder |
builder() |
default Map<String,Object> |
getRewire()
(experimental) Rewire webpack configuration.
|
@Stability(value=Experimental) @Nullable default Map<String,Object> getRewire()
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.
https://github.com/timarney/react-app-rewired@Stability(value=Experimental) static ReactRewireOptions.Builder builder()
ReactRewireOptions.Builder of ReactRewireOptionsCopyright © 2021. All rights reserved.