Skip to content

Commit

Permalink
[Glitch] Add a version comment to the emoji preval-ed file so it is r…
Browse files Browse the repository at this point in the history
…egenerated

Port 383be17 to glitch-soc

Signed-off-by: Claire <[email protected]>
  • Loading branch information
renchap authored and ClearlyClaire committed Jan 13, 2024
1 parent ca31b4d commit d660963
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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);
}
Expand Down

0 comments on commit d660963

Please sign in to comment.