-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
When a bundle is "inlined", for example when an SVG import should result in an SVG string, the @react-loosely-lazy/parcel-reporter-manifest
fails because it expects referencedBundles
to all have a filePath.
There needs to be an additional check before trying to access filePath
of a referencedBundle
to assert that the entry of the bundle isn't inlined.
for (const referencedBundle of referencedBundles) { | |
const assetDependency = relative( | |
referencedBundle.target.distDir, | |
referencedBundle.filePath | |
); |
Something like:
if (referencedBundle.bundleBehavior === 'inline') continue;
Possibly this should also be raised with the Parcel project, because accessing the filePath
should probably return null
not fail an assertion.
Metadata
Metadata
Assignees
Labels
No labels