Skip to content

Commit

Permalink
Fix self build
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Jan 30, 2022
1 parent 4cbda87 commit cc9e352
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/package-manager/src/NodeResolverBase.js
Expand Up @@ -79,7 +79,8 @@ export class NodeResolverBase<T> {
getPackageEntries(dir: FilePath, pkg: PackageJSON): Array<string> {
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/') &&
Expand Down

0 comments on commit cc9e352

Please sign in to comment.