mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(core): ESM detection when using export async function (#2425)
This commit is contained in:
committed by
GitHub
parent
5ebf389f6c
commit
fbf8caf5c4
@@ -1,5 +1,6 @@
|
||||
---
|
||||
"tauri": patch
|
||||
"tauri-codegen": patch
|
||||
---
|
||||
|
||||
Fix ES Module detection for default imports with relative paths or scoped packages.
|
||||
Fix ES Module detection for default imports with relative paths or scoped packages and exporting of async functions.
|
||||
|
||||
@@ -202,7 +202,7 @@ impl EmbeddedAssets {
|
||||
"export \\{",
|
||||
"export\\*",
|
||||
"export \\*",
|
||||
"export (default|class|let|const|function)",
|
||||
"export (default|class|let|const|function|async)",
|
||||
])
|
||||
.unwrap()
|
||||
.is_match(&js)
|
||||
|
||||
Reference in New Issue
Block a user