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 aacd8f1 commit a546b8bCopy full SHA for a546b8b
2 files changed
server/build.go
@@ -773,7 +773,11 @@ rebuild:
773
}
774
// if the dep is an es6 module
775
if !marked && depNpm.Module != "" {
776
- cjsImportNames.Add("*?")
+ if depESM.HasExportDefault && len(depESM.NamedExports) == 1 {
777
+ cjsImportNames.Add("default")
778
+ } else {
779
+ cjsImportNames.Add("*?")
780
+ }
781
marked = true
782
783
if !marked && includes(depESM.NamedExports, "__esModule") && depESM.HasExportDefault {
test/issue-592/issue-592.test.ts
@@ -0,0 +1,7 @@
1
+import { assertEquals } from "https://deno.land/std@0.178.0/testing/asserts.ts";
2
+
3
+import { createConnection } from "http://localhost:8080/mysql2@3.2.0";
4
5
+Deno.test("issue #592", async () => {
6
+ assertEquals(typeof createConnection, "function");
7
+});
0 commit comments