mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Add a version comment to the emoji preval-ed file so it is regenerated (#28700)
This commit is contained in:
parent
8b26614fa7
commit
383be173af
1 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,10 @@
|
||||||
// It's designed to be emitted in an array format to take up less space
|
// It's designed to be emitted in an array format to take up less space
|
||||||
// over the wire.
|
// 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');
|
const { emojiIndex } = require('emoji-mart');
|
||||||
let data = require('emoji-mart/data/all.json');
|
let data = require('emoji-mart/data/all.json');
|
||||||
const { uncompress: emojiMartUncompress } = require('emoji-mart/dist/utils/data');
|
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 { unicodeToFilename } = require('./unicode_to_filename');
|
||||||
const { unicodeToUnifiedName } = require('./unicode_to_unified_name');
|
const { unicodeToUnifiedName } = require('./unicode_to_unified_name');
|
||||||
|
|
||||||
|
|
||||||
if(data.compressed) {
|
if(data.compressed) {
|
||||||
data = emojiMartUncompress(data);
|
data = emojiMartUncompress(data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue