From 5e191a5a8c7dfc48eb261002483e4e3b917bf6ca Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 24 Oct 2022 18:36:34 +0200 Subject: [PATCH] Mapping: webcomponentsjs -> cdn.jsdelivr.net (#1184) --- core/shorthands.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/shorthands.js b/core/shorthands.js index 9ce7dc62..bd670bdb 100644 --- a/core/shorthands.js +++ b/core/shorthands.js @@ -264,6 +264,15 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) { 'path': 'resources/google-material-design-icons/google-material-design-icons.css', 'bundle': '' }; + } else if (CompleteURL.startsWith('cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/webcomponents-loader.')) { + lastVersion = targets.setLastVersion('/webcomponentsjs/'); + return { + 'source': channelHost, + 'versionDelivered': lastVersion, + 'versionRequested': 'latest', + 'path': `resources/webcomponentsjs/${lastVersion}/webcomponents-loader.min.jsm`, + 'bundle': '' + }; } return { 'result': false,