From cd44e33a7ecb6781b22b1767e028fe85e8a38589 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 18 Dec 2018 14:40:14 -0800 Subject: [PATCH] perf: reduce size of emoji-mart dep using fork (#841) --- package-lock.json | 5 ++--- package.json | 2 +- src/routes/_components/dialog/components/EmojiDialog.html | 4 ---- src/routes/_react/createEmojiMartPickerFromData.js | 2 +- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index a5cd941f..c0c099fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3522,9 +3522,8 @@ } }, "emoji-mart": { - "version": "2.9.2", - "resolved": "https://registry.npmjs.org/emoji-mart/-/emoji-mart-2.9.2.tgz", - "integrity": "sha512-5S743OpjFb9nBbbx5F4APWgcp2IOjdT7gLLzu2OBh0k44C3ZoCm+wuIN1llOtj5eosUa3lYqrZWtU/ZiaCULrg==" + "version": "github:nolanlawson/emoji-mart#10dc04023031d3b3eebb4e58ddc4a6f33ffa03eb", + "from": "github:nolanlawson/emoji-mart#for-pinafore-1" }, "emoji-regex": { "version": "7.0.1", diff --git a/package.json b/package.json index e8be23d5..7a409e37 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "compression": "^1.7.3", "cross-env": "^5.2.0", "css-loader": "^2.0.1", - "emoji-mart": "^2.9.2", + "emoji-mart": "github:nolanlawson/emoji-mart#for-pinafore-1", "emoji-regex": "^7.0.1", "encoding": "^0.1.12", "escape-html": "^1.0.3", diff --git a/src/routes/_components/dialog/components/EmojiDialog.html b/src/routes/_components/dialog/components/EmojiDialog.html index a1398a28..14ffdaab 100644 --- a/src/routes/_components/dialog/components/EmojiDialog.html +++ b/src/routes/_components/dialog/components/EmojiDialog.html @@ -37,10 +37,6 @@ background-repeat: no-repeat; background-position: center center; } - :global(.emoji-container .emoji-mart-emoji-native) { - /* remove if/when https://github.com/missive/emoji-mart/pull/256 is merged */ - font-family: PinaforeEmoji, sans-serif; - }