mirror of
https://github.com/denoland/deno.git
synced 2024-12-11 10:07:54 -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);
|