fix(generate): add node_modules to quickjs resolver

This commit is contained in:
ObserverOfTime 2025-10-31 15:28:58 +02:00 committed by Will Lillis
parent 120f74723e
commit 60635e0729

View file

@ -261,6 +261,7 @@ pub fn execute_native_runtime(grammar_path: &Path) -> JSResult<String> {
let context = Context::full(&runtime)?;
let resolver = FileResolver::default()
.with_path("./node_modules")
.with_path("./")
.with_pattern("{}.mjs");
let loader = ScriptLoader::default().with_extension("mjs");