Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jul 21, 2023
1 parent 03ce84a commit 6459180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next-swc/crates/next-core/src/app_segment_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ pub async fn parse_segment_config_from_source(
};

let ParseResult::Ok {
program: Program::Module(module),
program: Program::Module(module_ast),
eval_context,
..
} = &*ecmascript_asset.parse().await?
Expand All @@ -230,7 +230,7 @@ pub async fn parse_segment_config_from_source(

let mut config = NextSegmentConfig::default();

for item in &module.body {
for item in &module_ast.body {
let Some(decl) = item
.as_module_decl()
.and_then(|mod_decl| mod_decl.as_export_decl())
Expand Down

0 comments on commit 6459180

Please sign in to comment.