mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
40fc5f55ea
Updates SWC, dprint, deno_lint, deno_doc, serde, and Tokio (to 1.1.0). Co-authored-by: Kitson Kelly <me@kitsonkelly.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
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);
|