fix(core): ESM detection when using export async function (#2425)

This commit is contained in:
Lucas Fernandes Nogueira
2021-08-14 09:02:54 -03:00
committed by GitHub
parent 5ebf389f6c
commit fbf8caf5c4
2 changed files with 3 additions and 2 deletions

View File

@@ -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.

View File

@@ -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)