@codemoreira/esad 2.0.1-14 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemoreira/esad",
3
- "version": "2.0.1-14",
3
+ "version": "2.0.1-16",
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",
@@ -98,11 +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'),
103
+ 'process.env.EXPO_OS': JSON.stringify(platform),
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
+ }),
106
110
  '__DEV__': JSON.stringify(isDev),
107
111
  }),
108
112
  new ExpoModulesPlugin(),