-
-
Notifications
You must be signed in to change notification settings - Fork 88
date-fns increased vsix size by 2MB #773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
vsix is 1.1MB using moment js |
Try with day.js |
day.js does not have the |
RelativeTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) for some reason is unavailable, despite vscode uses node 12.4 Tried rewrite import statement (according to date-fns/date-fns#771), but that didn't help: diff --git a/src/historyView/common.ts b/src/historyView/common.ts
index 3c862023..3e07ad15 100644
--- a/src/historyView/common.ts
+++ b/src/historyView/common.ts
@@ -1,5 +1,5 @@
import { createHash } from "crypto";
-import { formatDistanceToNow } from "date-fns";
+import formatDistanceToNow from "date-fns/formatDistanceToNow";
import * as path from "path";
import { |
Yeah i tried different variations of imports and it did not seem to make a difference. |
🎉 This issue has been resolved in version 2.7.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.
The text was updated successfully, but these errors were encountered: