@codemoreira/esad 1.4.6-16 → 1.4.6-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.4.6-16",
3
+ "version": "1.4.6-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",
@@ -54,4 +54,4 @@
54
54
  "@types/react": "^19.2.14",
55
55
  "@types/react-native": "^0.72.8"
56
56
  }
57
- }
57
+ }
@@ -120,12 +120,10 @@ module.exports = async (subcommand) => {
120
120
  }
121
121
 
122
122
  // 6. Launch Native App
123
- if (choice === 'a') {
124
- console.log(`🤖 Compiling and launching on Android...`);
125
- await runProcess('npx', ['expo', 'run:android', '--no-bundler'], cwd);
123
+ await runProcess('npx', ['react-native', 'run-android', '--no-packager'], cwd);
126
124
  } else if (choice === 'i') {
127
125
  console.log(`🍎 Compiling and launching on iOS...`);
128
- await runProcess('npx', ['expo', 'run:ios', '--no-bundler'], cwd);
126
+ await runProcess('npx', ['react-native', 'run-ios', '--no-packager'], cwd);
129
127
  } else if (choice === 'b') {
130
128
  if (portBusy) {
131
129
  console.log(`✨ Bundler is already active. You can launch manual native runs.`);
@@ -139,9 +137,9 @@ module.exports = async (subcommand) => {
139
137
  // Other subcommands (android, ios directly)
140
138
  try {
141
139
  if (subcommand === 'android') {
142
- await runProcess('npx', ['expo', 'run:android', '--no-bundler'], cwd);
140
+ await runProcess('npx', ['react-native', 'run-android', '--no-packager'], cwd);
143
141
  } else if (subcommand === 'ios') {
144
- await runProcess('npx', ['expo', 'run:ios', '--no-bundler'], cwd);
142
+ await runProcess('npx', ['react-native', 'run-ios', '--no-packager'], cwd);
145
143
  }
146
144
  } catch (err) {
147
145
  console.error(`❌ Error running host command: ${err.message}`);
@@ -57,15 +57,14 @@ function withESAD(env, options) {
57
57
  {
58
58
  test: /\.[cm]?[jt]sx?$/,
59
59
  include: [
60
- /node_modules[\\/]react-native/,
61
- /node_modules[\\/]@react-native/,
60
+ /node_modules[\\/]react-native[\\/]/,
61
+ /node_modules[\\/]@react-native[\\/]/,
62
62
  ],
63
- type: 'javascript/auto',
64
63
  use: {
65
- loader: '@callstack/repack/babel-swc-loader',
64
+ loader: 'babel-loader',
66
65
  options: {
67
- sourceMaps: true,
68
- parallel: true,
66
+ presets: ['babel-preset-expo'],
67
+ caller: { name: 'repack' },
69
68
  },
70
69
  },
71
70
  },