@codemoreira/esad 2.0.1-19 → 2.0.1-20
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 +2 -2
- package/src/plugin/index.js +10 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codemoreira/esad",
|
|
3
|
-
"version": "2.0.1-
|
|
3
|
+
"version": "2.0.1-20",
|
|
4
4
|
"description": "Easy Super App Development - Zero-Config CLI and DevTools for React Native Module Federation",
|
|
5
5
|
"main": "src/plugin/index.js",
|
|
6
6
|
"types": "./src/plugin/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@swc/helpers": "^0.5.11",
|
|
45
45
|
"adm-zip": "^0.5.10",
|
|
46
46
|
"babel-loader": "^9.1.3",
|
|
47
|
-
"babel-plugin-transform-
|
|
47
|
+
"babel-plugin-transform-define": "^2.1.4",
|
|
48
48
|
"babel-preset-expo": "~12.0.0",
|
|
49
49
|
"chalk": "^4.1.2",
|
|
50
50
|
"commander": "^11.1.0",
|
package/src/plugin/index.js
CHANGED
|
@@ -78,8 +78,11 @@ function withESAD(env, options) {
|
|
|
78
78
|
],
|
|
79
79
|
plugins: [
|
|
80
80
|
[
|
|
81
|
-
require.resolve('babel-plugin-transform-
|
|
82
|
-
{
|
|
81
|
+
require.resolve('babel-plugin-transform-define'),
|
|
82
|
+
{
|
|
83
|
+
'process.env.EXPO_OS': platform,
|
|
84
|
+
'process.env.NODE_ENV': isDev ? 'development' : 'production',
|
|
85
|
+
}
|
|
83
86
|
]
|
|
84
87
|
],
|
|
85
88
|
sourceType: 'unambiguous',
|
|
@@ -102,8 +105,11 @@ function withESAD(env, options) {
|
|
|
102
105
|
],
|
|
103
106
|
plugins: [
|
|
104
107
|
[
|
|
105
|
-
require.resolve('babel-plugin-transform-
|
|
106
|
-
{
|
|
108
|
+
require.resolve('babel-plugin-transform-define'),
|
|
109
|
+
{
|
|
110
|
+
'process.env.EXPO_OS': platform,
|
|
111
|
+
'process.env.NODE_ENV': isDev ? 'development' : 'production',
|
|
112
|
+
}
|
|
107
113
|
]
|
|
108
114
|
],
|
|
109
115
|
caller: { name: 'repack', platform },
|