▸ getResolveOptions(platform
): Object
Get Webpack's resolve options to properly resolve JavaScript files
that contain <platform>
or native
(eg file.ios.js
) suffixes as well as react-native
field
in dependencies' package.json
.
example
Usage in Webpack config:
Name | Type | Description |
---|---|---|
platform |
string |
Target application platform. |
Object
Webpack's resolve options.
Name | Type | Description |
---|---|---|
aliasFields |
string [] |
- |
conditionNames |
string [] |
- |
extensions |
string [] |
- |
mainFields |
string [] |
Match what React Native packager supports. First entry takes precedence. |