Skip to content

Commit

Permalink
Fix EcmascriptModulePartAsset::ident
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 3, 2024
1 parent 96a1dfd commit df6ff9e
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,8 @@ impl Module for EcmascriptModulePartAsset {
#[turbo_tasks::function]
async fn ident(&self) -> Result<Vc<AssetIdent>> {
let inner = self.full_module.ident();
let parsed = self.full_module.parse_raw();
let result = self.full_module.split(parsed);

match &*result.await? {
SplitResult::Ok { .. } => Ok(inner.with_part(self.part)),
SplitResult::Failed { .. } => Ok(inner),
}
Ok(inner.with_part(self.part))
}

#[turbo_tasks::function]
Expand Down

0 comments on commit df6ff9e

Please sign in to comment.