mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Check if Preact is installed before installing React deps
This commit is contained in:
@@ -213,7 +213,7 @@ export function checkReactInstalled() {
|
||||
|
||||
const appDir = getMeteorAppDir();
|
||||
// Check if React is a dependency in the project
|
||||
const isReactInstalled = checkNpmDependencyExists('react', { cwd: appDir });
|
||||
const isReactInstalled = checkNpmDependencyExists('react', { cwd: appDir }) && !checkNpmDependencyExists('preact', { cwd: appDir });
|
||||
|
||||
if (isReactInstalled) {
|
||||
// Set environment variable to indicate React is enabled
|
||||
|
||||
Reference in New Issue
Block a user