mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Building the client package with `es2022`, exposing the optional `.cause` property on Errors effectively allowing us to wrap caught errors in the client package and re-throw with the context from the request, all while preserving a useful backtrace. This change has potentially material impact to older plugins that attempt to rely on the newer package, but this should only occur at compile time since the webapp doesn't dynamically export this client package. Co-authored-by: Mattermost Build <build@mattermost.com>
27 lines
581 B
JSON
27 lines
581 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"target": "es2022",
|
|
"declaration": true,
|
|
"strict": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"jsx": "react",
|
|
"outDir": "./lib",
|
|
"rootDir": "./src",
|
|
"composite": true
|
|
},
|
|
"include": [
|
|
"./src/**/*"
|
|
],
|
|
"exclude": [
|
|
"**/*.test.*"
|
|
],
|
|
"references": [
|
|
{"path": "../types"}
|
|
]
|
|
}
|