Skip to content

Commit 78bd35b

Browse files
committed
Fix error when compatible plugin is not found
1 parent 474c344 commit 78bd35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function getAdditionalPrinters() {
9898
for (let { pkg, formats } of additionalPrinterPlugins) {
9999
let pluginPrinters = loadIfExists(pkg)?.printers
100100
for (let format of formats) {
101-
if (format in pluginPrinters) {
101+
if (pluginPrinters && format in pluginPrinters) {
102102
printers[format] = pluginPrinters[format]
103103
}
104104
}

0 commit comments

Comments
 (0)