@codemoreira/esad 1.3.16 → 1.3.17

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": "1.3.16",
3
+ "version": "1.3.17",
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",
@@ -24,6 +24,7 @@ function withESAD(env, options) {
24
24
  const pkgPath = path.resolve(dirname, 'package.json');
25
25
  const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
26
26
  const id = options.id.replace(/-/g, '_');
27
+ const clientPath = path.resolve(__dirname, '..', 'client', 'index.js');
27
28
 
28
29
  console.log(`[ESAD] Applying Mega-Zero-Config profile for ${options.type.toUpperCase()} (${platform}): ${id}`);
29
30
 
@@ -96,8 +97,11 @@ function withESAD(env, options) {
96
97
  'react/jsx-runtime': { singleton: true, eager: true, requiredVersion: pkg.dependencies.react },
97
98
  'react-native': { singleton: true, eager: true, requiredVersion: pkg.dependencies['react-native'] },
98
99
  'react-native-safe-area-context': { singleton: true, eager: true, requiredVersion: pkg.dependencies['react-native-safe-area-context'] },
99
- '@codemoreira/esad/client': { singleton: true, eager: true },
100
- '@codemoreira/esad': { singleton: true, eager: true },
100
+ '@codemoreira/esad/client': {
101
+ singleton: true,
102
+ eager: options.type === 'host', // Only eager in host to ensure it's available
103
+ import: clientPath
104
+ },
101
105
  ...(options.shared || {})
102
106
  }
103
107
  })