Skip to content

Commit

Permalink
feat: share object define reference for GlobalDefine
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Dec 6, 2024
1 parent 67f9a0e commit 598a78c
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl<'a> From<&InjectImport> for DotDefineState<'a> {
fn from(inject: &InjectImport) -> Self {
let parts = inject.specifier.local().split('.').map(CompactStr::from).collect::<Vec<_>>();
let value = inject.replace_value.clone().unwrap();
let dot_define = DotDefine { parts, value };
let dot_define = DotDefine { parts, value, rule_index: 0 };
Self { dot_define, value_atom: None }
}
}
Expand Down
Loading

0 comments on commit 598a78c

Please sign in to comment.