Skip to main content

has_es_module_syntax

Function has_es_module_syntax 

Source
pub fn has_es_module_syntax(source: &str) -> bool
Expand description

Check if source contains ES module syntax (imports or exports) This determines if the code needs bundling to work with QuickJS eval