Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
refactor: revert changes to AssetMap and unhandle edge-case
Browse files Browse the repository at this point in the history
  • Loading branch information
samrith-s committed Apr 25, 2021
1 parent 97dd115 commit b0dec79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/AssetMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export class AssetMap extends ConfigProvider {
}

private getFile(depAsset: ParcelBundle): string {
const isRelative = !!depAsset.entryAsset?.relativeName;
return isRelative ? depAsset.entryAsset?.relativeName : path.basename(depAsset.name);
const isRelative = depAsset.type === 'html' && !!depAsset.entryAsset?.relativeName;
return isRelative ? depAsset.entryAsset.relativeName : path.basename(depAsset.name);
}

private iterativeDependencyResolver(depAsset: ParcelBundle): void {
Expand Down

0 comments on commit b0dec79

Please sign in to comment.