@codemoreira/esad 2.0.1-26 → 2.0.1-28
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/env-shim.js +6 -4
package/package.json
CHANGED
package/src/plugin/env-shim.js
CHANGED
|
@@ -10,7 +10,9 @@ if (typeof process === 'undefined') {
|
|
|
10
10
|
process.env = {};
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
//
|
|
14
|
-
process.env
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
// Prevent DefinePlugin from replacing the left-hand side by using an intermediate variable and brackets
|
|
14
|
+
const e = process.env;
|
|
15
|
+
e['EXPO_OS'] = '__EXPO_OS__';
|
|
16
|
+
e['NODE_ENV'] = '__NODE_ENV__';
|
|
17
|
+
e['REPACK_PLATFORM'] = '__REPACK_PLATFORM__';
|
|
18
|
+
|