We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 4cbda87 commit cc9e352Copy full SHA for cc9e352
packages/core/package-manager/src/NodeResolverBase.js
@@ -79,7 +79,8 @@ export class NodeResolverBase<T> {
79
getPackageEntries(dir: FilePath, pkg: PackageJSON): Array<string> {
80
let main = pkg.main;
81
if (
82
- process.env.PARCEL_BUILD_ENV !== 'production' &&
+ (process.env.PARCEL_BUILD_ENV !== 'production' ||
83
+ process.env.PARCEL_SELF_BUILD) &&
84
typeof pkg.name === 'string' &&
85
typeof pkg.source === 'string' &&
86
pkg.name.startsWith('@parcel/') &&
0 commit comments