parcel-bundler / parcel

The zero configuration build tool for the web. 📦🚀
https://parceljs.org
MIT License
43.27k stars 2.26k forks source link

Improve constant module bundling error message #9803

Closed marcins closed 2 weeks ago

marcins commented 2 weeks ago

↪️ Pull Request

Improves the error message when a constant module cannot be found during packaging.

Before:

@parcel/packager-js: Constant module not found in bundle

After:

@parcel/packager-js: Constant module ../platform/packages/analytics/analytics-gas-types/src/index.ts referenced from
../platform/packages/analytics/analytics-listeners/src/fabric/process-event-payload.tsx not found in bundle
shared~vendor~atlaskit.HASH_REF_bb77a59655d528f0.js