diff --git a/packages/vite/types/import-meta.d.ts b/packages/vite/types/import-meta.d.ts
new file mode 100644
index 00000000000000..ee00ff5d04818a
--- /dev/null
+++ b/packages/vite/types/import-meta.d.ts
@@ -0,0 +1,5 @@
+///
+
+// https://github.com/microsoft/TypeScript/issues/45096
+// TypeScript has a bug that makes
+// not possible in userland. This file provides a workaround for now.