From 80fb5b30cae3641351e33116d0852f1d5f0f189a Mon Sep 17 00:00:00 2001 From: catnipan Date: Mon, 31 Mar 2025 17:41:39 -0400 Subject: [PATCH] module example code add filename comment --- packages/documentation/copy/en/modules-reference/Reference.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/documentation/copy/en/modules-reference/Reference.md b/packages/documentation/copy/en/modules-reference/Reference.md index 20fd7adf4e6f..082d8918ced5 100644 --- a/packages/documentation/copy/en/modules-reference/Reference.md +++ b/packages/documentation/copy/en/modules-reference/Reference.md @@ -295,6 +295,7 @@ While it’s rare to need to mix imports and require calls in the same file, thi #### Examples ```ts +// @Filename: main.ts import x, { y, z } from "mod"; import mod = require("mod"); const dynamic = import("mod"); @@ -304,6 +305,7 @@ export default "default export"; ``` ```js +// @Filename: main.js import x, { y, z } from "mod"; const mod = require("mod"); const dynamic = import("mod");