mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-05-31 15:21:00 +02:00
This is a major version bump containing two breaking changes for us: - the `baseUrl` option is removed; - the `moduleResolution` option doesn't support `node10` (or the `node` alias) anymore. The migration guide at https://github.com/microsoft/TypeScript/issues/62508 indicates that we can remove `baseUrl` and change `moduleResolution` to `bundler` (the latter is consistent with what other projects do that are linked to the issue, and more details on that configuration option can be found at https://www.typescriptlang.org/tsconfig/#moduleResolution). Note that this is enough to get `npx gulp typestest` green and that is all validation we can do on our side, so as usual if any follow-up fixes for types are necessary we rely on the community to provide patches and extend the types test where possible to improve validation.
23 lines
761 B
JSON
23 lines
761 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"allowJs": true,
|
|
"declaration": true,
|
|
"strict": true,
|
|
"emitDeclarationOnly": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"moduleResolution": "bundler",
|
|
"paths": {
|
|
"pdfjs-lib": ["./src/pdf"],
|
|
"display-binary_data_factory": ["./src/display/binary_data_factory"],
|
|
"display-network_stream": ["./src/display/network_stream.js"],
|
|
"display-node_utils": ["./src/display/node_utils"],
|
|
"fluent-bundle": ["./node_modules/@fluent/bundle/esm/index.js"],
|
|
"fluent-dom": ["./node_modules/@fluent/dom/esm/index.js"],
|
|
"web-null_l10n": ["./web/genericl10n"]
|
|
}
|
|
},
|
|
"files": ["src/pdf.js", "web/pdf_viewer.component.js"]
|
|
}
|