@teambit/react 1.0.1276 → 1.0.1278

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.
@@ -199,9 +199,11 @@ export class ReactApp implements Application {
199
199
  context.capsule.fs.writeFileSync(join(ssrAppDir, 'runner.js'), runner);
200
200
  const capsuleSsrDir = context.capsule.fs.getPath(ssrAppDir);
201
201
  const installer = this.dependencyResolver.getInstaller({
202
- packageManager: 'teambit.dependencies/yarn',
202
+ packageManager: 'teambit.dependencies/pnpm',
203
203
  rootDir: capsuleSsrDir,
204
- cacheRootDirectory: capsuleSsrDir,
204
+ // the ssr dir is deployed as is, so its node_modules must be flat and self-contained
205
+ nodeLinker: 'hoisted',
206
+ installingContext: { inCapsule: true },
205
207
  });
206
208
  await installer.install(capsuleSsrDir, this.getSsrPolicy(), new ComponentMap(new Map()));
207
209
  return ssrAppDir;