mirror of
https://github.com/denoland/deno.git
synced 2024-11-16 16:53:20 -05:00
9 lines
181 B
TypeScript
9 lines
181 B
TypeScript
|
const blob = new Blob(['export { a } from "./a.ts";'], {
|
||
|
type: "application/javascript",
|
||
|
});
|
||
|
const url = URL.createObjectURL(blob);
|
||
|
|
||
|
const a = await import(url);
|
||
|
|
||
|
console.log(a);
|