d0f14b1ce3
The typescript compiler is now configured to know about the import map to be able to resolve those imports and find the associated types. As tsc outputs declaration files using the original module identifiers and not the resolved ones, tsc-alias is used to post-process the declaration files by resolving those paths.
26 lines
711 B
JSON
26 lines
711 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ESNext",
|
|
"allowJs": true,
|
|
"declaration": true,
|
|
"strict": true,
|
|
"emitDeclarationOnly": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"moduleResolution": "node",
|
|
"paths": {
|
|
"display-fetch_stream": ["./src/display/fetch_stream"],
|
|
"display-l10n_utils": ["./web/l10n_utils"],
|
|
"display-network": ["./src/display/network"],
|
|
"display-node_stream": ["./src/display/node_stream"],
|
|
"display-node_utils": ["./src/display/node_utils"],
|
|
"display-svg": ["./src/display/svg"],
|
|
"pdfjs-lib": ["./src/pdf"]
|
|
}
|
|
},
|
|
"files": [
|
|
"src/pdf.js",
|
|
"web/pdf_viewer.component.js"
|
|
]
|
|
}
|