From cc9e352a22ab931d305dea4715c44103a7152e24 Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Sun, 30 Jan 2022 17:57:34 -0500 Subject: [PATCH] Fix self build --- packages/core/package-manager/src/NodeResolverBase.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/package-manager/src/NodeResolverBase.js b/packages/core/package-manager/src/NodeResolverBase.js index 7f9156a777a..ff4a1a0291c 100644 --- a/packages/core/package-manager/src/NodeResolverBase.js +++ b/packages/core/package-manager/src/NodeResolverBase.js @@ -79,7 +79,8 @@ export class NodeResolverBase { getPackageEntries(dir: FilePath, pkg: PackageJSON): Array { let main = pkg.main; if ( - process.env.PARCEL_BUILD_ENV !== 'production' && + (process.env.PARCEL_BUILD_ENV !== 'production' || + process.env.PARCEL_SELF_BUILD) && typeof pkg.name === 'string' && typeof pkg.source === 'string' && pkg.name.startsWith('@parcel/') &&