Skip to content

Commit

Permalink
Fix EcmascriptModuleFacadeModule::ident()
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 17, 2024
1 parent efbab25 commit b3f74d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::collections::BTreeMap;

use anyhow::{bail, Result};
use turbo_tasks::Vc;
use turbo_tasks::{ValueToString, Vc};
use turbo_tasks_fs::{glob::Glob, File, FileContent};
use turbopack_core::{
asset::{Asset, AssetContent},
Expand Down Expand Up @@ -61,10 +61,10 @@ impl EcmascriptModuleFacadeModule {
#[turbo_tasks::value_impl]
impl Module for EcmascriptModuleFacadeModule {
#[turbo_tasks::function]
fn ident(&self) -> Vc<AssetIdent> {
async fn ident(&self) -> Result<Vc<AssetIdent>> {
let inner = self.module.ident();

inner.with_part(self.ty)
Ok(inner.with_modifier(self.ty.to_string()))
}

#[turbo_tasks::function]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ error - [bindings] [project]/turbopack/crates/turbopack-tests/tests/execution/tu
4 | import * as X from "./module";
5 |

The export Abc was not found in module [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/exports/invalid-export/input/invalid-export/module.js [test] (ecmascript) <exports>.
The export Abc was not found in module [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/exports/invalid-export/input/invalid-export/module.js [test] (ecmascript, exports).

Did you mean to import Abd?

Expand Down

0 comments on commit b3f74d6

Please sign in to comment.