We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
export async function
1 parent 5ebf389 commit fbf8cafCopy full SHA for fbf8caf
.changes/fix-esm-detection.md
@@ -1,5 +1,6 @@
1
---
2
"tauri": patch
3
+"tauri-codegen": patch
4
5
-Fix ES Module detection for default imports with relative paths or scoped packages.
6
+Fix ES Module detection for default imports with relative paths or scoped packages and exporting of async functions.
core/tauri-codegen/src/embedded_assets.rs
@@ -202,7 +202,7 @@ impl EmbeddedAssets {
202
"export \\{",
203
"export\\*",
204
"export \\*",
205
- "export (default|class|let|const|function)",
+ "export (default|class|let|const|function|async)",
206
])
207
.unwrap()
208
.is_match(&js)
0 commit comments