mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-01-08 22:28:08 -05:00
Targeting ES2020 looks like it's generally fine today. It's widely supported across modern browsers
and environments and it would allow Semaphore bundles to use new ES features natively, like arrow
functions, promises, and classes, which can improve code readability and efficiency.
re #688
Former-commit-id: 9f49d91197
27 lines
692 B
JSON
27 lines
692 B
JSON
{
|
|
"compilerOptions": {
|
|
"baseUrl": ".",
|
|
"strict": true,
|
|
"target": "ES2020",
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler",
|
|
"esModuleInterop": true,
|
|
"preserveConstEnums": true,
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true,
|
|
"declaration": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"declarationDir": "types",
|
|
"typeRoots": ["node_modules/@types", "types"],
|
|
"paths": {
|
|
"@semaphore-protocol/*": ["./packages/*/src"]
|
|
}
|
|
},
|
|
"ts-node": {
|
|
"compilerOptions": {
|
|
"target": "esnext",
|
|
"module": "commonjs"
|
|
}
|
|
}
|
|
}
|