mirror of
https://hk.gh-proxy.com/https://github.com/NodeBB/nodebb-plugin-emoji.git
synced 2025-10-03 01:10:57 +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.
22 lines
No EOL
425 B
JSON
22 lines
No EOL
425 B
JSON
{
|
|
"include": [
|
|
"lib/**/*.ts"
|
|
],
|
|
"compilerOptions": {
|
|
"types": [],
|
|
"outDir": "build/lib",
|
|
"lib": ["es2019"],
|
|
"target": "es2019",
|
|
"module": "node16",
|
|
"moduleResolution": "node16",
|
|
"esModuleInterop": true,
|
|
"noImplicitAny": true,
|
|
"alwaysStrict": true,
|
|
"strictNullChecks": true,
|
|
"sourceMap": true,
|
|
"skipLibCheck": true
|
|
},
|
|
"typeAcquisition": {
|
|
"enable": false
|
|
}
|
|
} |