mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
12 lines
309 B
Text
12 lines
309 B
Text
const importMeta = {
|
|
url: "file:///tests/subdir/f.ts",
|
|
main: false
|
|
};
|
|
const isMain = importMeta.main;
|
|
const modUrl = importMeta.url;
|
|
const importMeta1 = {
|
|
url: "file:///tests/fixture06.ts",
|
|
main: import.meta.main
|
|
};
|
|
console.log(isMain, modUrl);
|
|
console.log(importMeta1.main, importMeta1.url);
|