Skip to content

Commit

Permalink
fix external module (#7961)
Browse files Browse the repository at this point in the history
### Description

With `is_esm: true` `module` is not available.

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->


Closes PACK-2961
  • Loading branch information
sokra committed Apr 15, 2024
1 parent 7c5b0c4 commit f2acbc8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -89,7 +89,7 @@ impl CachedExternalModule {
Ok(EcmascriptModuleContent {
inner_code: code.build(),
source_map: None,
is_esm: true,
is_esm: self.external_type != CachedExternalType::CommonJs,
}
.cell())
}
Expand Down

0 comments on commit f2acbc8

Please sign in to comment.