mirror of
https://hk.gh-proxy.com/https://github.com/NodeBB/nodebb-plugin-emoji.git
synced 2025-10-04 01:20:58 +08:00
Dynamic `import('mime')` was compiling to `require` which led to a runtime error. Fixed the tsconfig to correctly support `import()` in CJS modules and simplified the code a bit.
45 lines
1.7 KiB
JSON
45 lines
1.7 KiB
JSON
{
|
|
"library": ".",
|
|
"scss": [
|
|
"public/style.scss"
|
|
],
|
|
"acpScss": [
|
|
"acp/admin.scss"
|
|
],
|
|
"modules": {
|
|
"emoji.js": "build/public/lib/emoji.js",
|
|
"emoji-dialog.js": "build/public/lib/emoji-dialog.js",
|
|
"leven.js": "public/lib/leven.js",
|
|
"fuzzysearch.js": "public/lib/fuzzysearch.js",
|
|
"../admin/plugins/emoji.js": "build/acp/admin.js"
|
|
},
|
|
"staticDirs": {
|
|
"emoji": "build/emoji"
|
|
},
|
|
"scripts": [
|
|
"public/emoji-setup.js"
|
|
],
|
|
"acpScripts": [
|
|
"public/emoji-setup.js"
|
|
],
|
|
"languages": "public/language",
|
|
"defaultLang": "en-US",
|
|
"templates": "public/templates",
|
|
"hooks": [
|
|
{ "hook": "static:app.load", "method": "init" },
|
|
{ "hook": "filter:admin.header.build", "method": "adminMenu" },
|
|
{ "hook": "filter:composer.formatting", "method": "composerFormatting", "priority": 19 },
|
|
{ "hook": "filter:parse.raw", "method": "parse.raw", "priority": 9 },
|
|
{ "hook": "filter:parse.post", "method": "parse.post", "priority": 9 },
|
|
{ "hook": "filter:activitypub.mocks.note", "method": "parse.activitypubNote" },
|
|
{ "hook": "filter:topic.get", "method": "parse.topic" },
|
|
{ "hook": "filter:topics.get", "method": "parse.topics" },
|
|
{ "hook": "filter:post.getPostSummaryByPids", "method": "parse.postSummaries" },
|
|
{ "hook": "filter:user.notifications.getNotifications", "method": "parse.notifications" },
|
|
{ "hook": "filter:email.prepare", "method": "parse.email" },
|
|
{ "hook": "filter:middleware.renderHeader", "method": "parse.header" },
|
|
{ "hook": "filter:meta.getLinkTags", "method": "addStylesheet" },
|
|
{ "hook": "filter:config.get", "method": "configGet" },
|
|
{ "hook": "filter:messaging.loadRoom", "method": "filterMessagingLoadRoom" }
|
|
]
|
|
}
|