fix(generate): add node_modules to quickjs resolver
This commit is contained in:
parent
120f74723e
commit
60635e0729
1 changed files with 1 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue