@codemoreira/esad 2.0.1-15 → 2.0.1-16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/plugin/index.js +5 -3
package/package.json
CHANGED
package/src/plugin/index.js
CHANGED
|
@@ -98,13 +98,15 @@ function withESAD(env, options) {
|
|
|
98
98
|
],
|
|
99
99
|
},
|
|
100
100
|
plugins: [
|
|
101
|
-
new ProvidePlugin({
|
|
102
|
-
process: 'process/browser',
|
|
103
|
-
}),
|
|
104
101
|
new DefinePlugin({
|
|
105
102
|
'process.env.NODE_ENV': JSON.stringify(isDev ? 'development' : 'production'),
|
|
106
103
|
'process.env.EXPO_OS': JSON.stringify(platform),
|
|
107
104
|
'process.env.REPACK_PLATFORM': JSON.stringify(platform),
|
|
105
|
+
'process.env': JSON.stringify({
|
|
106
|
+
NODE_ENV: isDev ? 'development' : 'production',
|
|
107
|
+
EXPO_OS: platform,
|
|
108
|
+
REPACK_PLATFORM: platform,
|
|
109
|
+
}),
|
|
108
110
|
'__DEV__': JSON.stringify(isDev),
|
|
109
111
|
}),
|
|
110
112
|
new ExpoModulesPlugin(),
|