mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 11:16:38 -05:00
14 lines
268 B
TypeScript
14 lines
268 B
TypeScript
|
const blob = new Blob(
|
||
|
['export const a = "a";\n\nexport enum A {\n A,\n B,\n C,\n}\n'],
|
||
|
{
|
||
|
type: "application/typescript",
|
||
|
},
|
||
|
);
|
||
|
const url = URL.createObjectURL(blob);
|
||
|
|
||
|
const a = await import(url);
|
||
|
|
||
|
console.log(a.a);
|
||
|
console.log(a.A);
|
||
|
console.log(a.A.A);
|