File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ use turbopack_core::{
1515 FreeVarReferences ,
1616 } ,
1717 condition:: ContextCondition ,
18+ issue:: IssueSeverity ,
1819 source:: Source ,
1920 virtual_source:: VirtualSource ,
2021} ;
@@ -137,13 +138,14 @@ pub fn free_var_references_with_vercel_system_env_warnings(
137138 c
138139 )
139140 . into ( ) ;
140- if should_error {
141- FreeVarReference :: Error ( message)
142- } else {
143- FreeVarReference :: Warning {
144- message,
145- inner : Box :: new ( FreeVarReference :: Value ( value) ) ,
146- }
141+ FreeVarReference :: ReportUsage {
142+ message,
143+ severity : if should_error {
144+ IssueSeverity :: Error
145+ } else {
146+ IssueSeverity :: Warning
147+ } ,
148+ inner : Some ( Box :: new ( FreeVarReference :: Value ( value) ) ) ,
147149 }
148150 } else {
149151 FreeVarReference :: Value ( value)
You can’t perform that action at this time.
0 commit comments