From 57a8c2f46dd9dd50648639049837eabf5a7ef5c7 Mon Sep 17 00:00:00 2001 From: Mariotaku Date: Wed, 13 Nov 2024 13:37:04 +0900 Subject: [PATCH] fixed lib version data --- webpack/caniuse/data-plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack/caniuse/data-plugin.js b/webpack/caniuse/data-plugin.js index e95fd71..b594285 100644 --- a/webpack/caniuse/data-plugin.js +++ b/webpack/caniuse/data-plugin.js @@ -73,7 +73,7 @@ export default class CanIUseDataGenPlugin { for (let firmware of firmwares) { const override = feature.version_override && (firmware.major in feature.version_override ? feature.version_override?.[firmware.major] : feature.version_override?.default); - const version = override !== undefined ? override : (await featureVersion(feature, firmware))?.format(); + const version = override ? override : (await featureVersion(feature, firmware))?.format(); if (version) { entry.versions[firmware.major] = version; }