From d6609635cb42cef32070c6f2779fe926a7d05589 Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Fri, 12 Jan 2024 04:39:11 +0100 Subject: [PATCH] [Glitch] Add a version comment to the emoji preval-ed file so it is regenerated Port 383be173afacae35130855fb7d625ff7565ac804 to glitch-soc Signed-off-by: Claire --- .../flavours/glitch/features/emoji/emoji_compressed.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/emoji/emoji_compressed.js b/app/javascript/flavours/glitch/features/emoji/emoji_compressed.js index 70ac5e176f..792137b76f 100644 --- a/app/javascript/flavours/glitch/features/emoji/emoji_compressed.js +++ b/app/javascript/flavours/glitch/features/emoji/emoji_compressed.js @@ -7,6 +7,10 @@ // It's designed to be emitted in an array format to take up less space // over the wire. +// This version comment should be bumped each time the emoji data is changed +// to ensure that the prevaled file is regenerated by Babel +// version: 2 + const { emojiIndex } = require('emoji-mart'); let data = require('emoji-mart/data/all.json'); const { uncompress: emojiMartUncompress } = require('emoji-mart/dist/utils/data'); @@ -15,7 +19,6 @@ const emojiMap = require('./emoji_map.json'); const { unicodeToFilename } = require('./unicode_to_filename'); const { unicodeToUnifiedName } = require('./unicode_to_unified_name'); - if(data.compressed) { data = emojiMartUncompress(data); }