diff options
Diffstat (limited to 'cli/tests/import_blob_url_imports.ts')
-rw-r--r-- | cli/tests/import_blob_url_imports.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/import_blob_url_imports.ts b/cli/tests/import_blob_url_imports.ts new file mode 100644 index 000000000..7c2b10865 --- /dev/null +++ b/cli/tests/import_blob_url_imports.ts @@ -0,0 +1,11 @@ +const blob = new Blob( + [ + 'export { printHello } from "http://localhost:4545/cli/tests/subdir/mod2.ts"', + ], + { type: "application/javascript" }, +); +const url = URL.createObjectURL(blob); + +const { printHello } = await import(url); + +printHello(); |