refactor: Use ESM (#8358)
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
const twemojiRegex = require('twemoji-parser/dist/lib/regex').default;
|
||||
import * as twemoji from 'twemoji-parser/dist/lib/regex.js';
|
||||
const twemojiRegex = twemoji.default;
|
||||
|
||||
export const emojiRegex = new RegExp(`(${twemojiRegex.source})`);
|
||||
|
Reference in New Issue
Block a user