We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e48029 commit b2b36cfCopy full SHA for b2b36cf
2 files changed
.changes/fix-esm-detection.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch
3
4
+
5
+Fix ES Module detection for default imports with relative paths or scoped packages.
core/tauri-codegen/src/embedded_assets.rs
@@ -196,7 +196,7 @@ impl EmbeddedAssets {
196
"import \\*",
197
"import (\"|');?$",
198
"import\\(",
199
- "import (.|\n)+ from (\"|')([A-Za-z\\-]+)(\"|')",
+ "import (.|\n)+ from (\"|')([A-Za-z/\\.@-]+)(\"|')",
200
// export keywords
201
"export\\{",
202
"export \\{",
0 commit comments