@codemoreira/esad 2.0.1-20 → 2.0.1-23

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-20",
3
+ "version": "2.0.1-23",
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",
@@ -2,7 +2,7 @@ const path = require('node:path');
2
2
  const fs = require('node:fs');
3
3
  const Repack = require('@callstack/repack');
4
4
  const { ExpoModulesPlugin } = require('@callstack/repack-plugin-expo-modules');
5
- const { ProvidePlugin, DefinePlugin } = require('@rspack/core');
5
+ const { DefinePlugin, ProvidePlugin } = require('@rspack/core');
6
6
 
7
7
  /**
8
8
  * ESAD Re.Pack Plugin Wrapper
@@ -127,8 +127,16 @@ function withESAD(env, options) {
127
127
  'process.env.NODE_ENV': JSON.stringify(isDev ? 'development' : 'production'),
128
128
  'process.env.EXPO_OS': JSON.stringify(platform),
129
129
  'process.env.REPACK_PLATFORM': JSON.stringify(platform),
130
+ 'process.env': JSON.stringify({
131
+ NODE_ENV: isDev ? 'development' : 'production',
132
+ EXPO_OS: platform,
133
+ REPACK_PLATFORM: platform,
134
+ }),
130
135
  '__DEV__': JSON.stringify(isDev),
131
136
  }),
137
+ new ProvidePlugin({
138
+ process: 'process/browser',
139
+ }),
132
140
  new ExpoModulesPlugin(),
133
141
  new Repack.RepackPlugin(),
134
142
  new Repack.plugins.ModuleFederationPluginV2({