Skip to content

Commit cc9e352

Browse files
committedJan 30, 2022
Fix self build
1 parent 4cbda87 commit cc9e352

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/core/package-manager/src/NodeResolverBase.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ export class NodeResolverBase<T> {
7979
getPackageEntries(dir: FilePath, pkg: PackageJSON): Array<string> {
8080
let main = pkg.main;
8181
if (
82-
process.env.PARCEL_BUILD_ENV !== 'production' &&
82+
(process.env.PARCEL_BUILD_ENV !== 'production' ||
83+
process.env.PARCEL_SELF_BUILD) &&
8384
typeof pkg.name === 'string' &&
8485
typeof pkg.source === 'string' &&
8586
pkg.name.startsWith('@parcel/') &&

0 commit comments

Comments
 (0)
Please sign in to comment.