aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/bun-types/globals.d.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/bun-types/globals.d.ts b/packages/bun-types/globals.d.ts
index fa49aec1d..2671dd1f0 100644
--- a/packages/bun-types/globals.d.ts
+++ b/packages/bun-types/globals.d.ts
@@ -274,6 +274,11 @@ interface ImportMeta {
* Resolve a module ID the same as if you imported it
*
* The `parent` argument is optional, and defaults to the current module's path.
+ *
+ * Warning: **This API is not stable** and may change in the future. Use at your
+ * own risk. Usually, you should use `require` instead and Bun's transpiler
+ * will automatically rewrite your code to use `import.meta.require` if
+ * relevant.
*/
require: NodeJS.Require;
}