create-pika-minigame 2.2.0 → 2.4.0

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/bin/cli.js CHANGED
@@ -264,7 +264,7 @@ ${colors.reset}
264
264
  ...pkg.devDependencies,
265
265
  '@callstack/repack': '^5.2.5',
266
266
  '@callstack/repack-plugin-reanimated': '^5.2.5',
267
- '@module-federation/enhanced': '^2.7.0',
267
+ '@module-federation/enhanced': '^0.6.10', // Must match host app version!
268
268
  '@rspack/core': '^1.7.12',
269
269
  '@swc/helpers': '^0.5.19',
270
270
  'ajv': '^8.17.0',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pika-minigame",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "description": "CLI to scaffold Pika mini-game projects (bare React Native 0.77)",
5
5
  "author": "Pika Team",
6
6
  "license": "MIT",
@@ -22,9 +22,9 @@ export default Repack.defineRspackConfig((env) => {
22
22
  output: {
23
23
  path: `${__dirname}/build/outputs/${platform}/remotes`,
24
24
  uniqueName: '{{PROJECT_NAME_SNAKE}}',
25
- // 'auto' = Module Federation resolves URLs relative to the loaded script
26
- // For dev with local serve, override: MF_PUBLIC_PATH=http://localhost:9000/
27
- publicPath: process.env.MF_PUBLIC_PATH || 'auto',
25
+ // Empty string = resolve relative to manifest URL (works with RN + Vercel)
26
+ // For local dev with serve: MF_PUBLIC_PATH=http://localhost:9000/
27
+ publicPath: process.env.MF_PUBLIC_PATH || '',
28
28
  },
29
29
  resolve: {
30
30
  ...Repack.getResolveOptions({ enablePackageExports: true }),