[GeckoView] Avoid bundling the AltTextManager class, since it's unused

This commit is contained in:
Jonas Jenwald 2023-09-21 12:51:34 +02:00
parent 561aea530b
commit e2b7896826
6 changed files with 7 additions and 1 deletions

View File

@ -244,6 +244,7 @@ function createWebpackConfig(
"display-svg": "src/display/stubs.js",
};
const viewerAlias = {
"web-alt_text_manager": "web/alt_text_manager.js",
"web-annotation_editor_params": "web/annotation_editor_params.js",
"web-com": "",
"web-pdf_attachment_viewer": "web/pdf_attachment_viewer.js",

View File

@ -24,6 +24,7 @@
"display-node_utils": "../../src/display/stubs.js",
"display-svg": "../../src/display/stubs.js",
"web-alt_text_manager": "../../web/alt_text_manager.js",
"web-annotation_editor_params": "../../web/annotation_editor_params.js",
"web-com": "../../web/genericcom.js",
"web-pdf_attachment_viewer": "../../web/pdf_attachment_viewer.js",

View File

@ -55,7 +55,7 @@ import {
import { AppOptions, OptionKind } from "./app_options.js";
import { AutomationEventBus, EventBus } from "./event_utils.js";
import { LinkTarget, PDFLinkService } from "./pdf_link_service.js";
import { AltTextManager } from "./alt_text_manager.js";
import { AltTextManager } from "web-alt_text_manager";
import { AnnotationEditorParams } from "web-annotation_editor_params";
import { OverlayManager } from "./overlay_manager.js";
import { PasswordPrompt } from "./password_prompt.js";

View File

@ -13,6 +13,7 @@
* limitations under the License.
*/
const AltTextManager = null;
const AnnotationEditorParams = null;
const PDFAttachmentViewer = null;
const PDFCursorTools = null;
@ -26,6 +27,7 @@ const PDFThumbnailViewer = null;
const SecondaryToolbar = null;
export {
AltTextManager,
AnnotationEditorParams,
PDFAttachmentViewer,
PDFCursorTools,

View File

@ -56,6 +56,7 @@ See https://github.com/adobe-type-tools/cmap-resources
"display-node_utils": "../src/display/stubs.js",
"display-svg": "../src/display/stubs.js",
"web-alt_text_manager": "./stubs-geckoview.js",
"web-annotation_editor_params": "./stubs-geckoview.js",
"web-com": "./genericcom.js",
"web-pdf_attachment_viewer": "./stubs-geckoview.js",

View File

@ -67,6 +67,7 @@ See https://github.com/adobe-type-tools/cmap-resources
"display-node_utils": "../src/display/stubs.js",
"display-svg": "../src/display/stubs.js",
"web-alt_text_manager": "./alt_text_manager.js",
"web-annotation_editor_params": "./annotation_editor_params.js",
"web-com": "./genericcom.js",
"web-pdf_attachment_viewer": "./pdf_attachment_viewer.js",